If you are looking for a way to add the node and edge level attribute to contain basic data properties to use it while processing and developing the graph algorithms. This piece of code is for you. Find below the python code that elaborated how to add node and edge level attributes. import networkx as