try out with a networkx class
try out with a networkx class