You can use the graph_attr
parameter in the to_agraph()
function from the PyGraphviz library to get a list of attributes for a graph in NetworkX:
main.py486 chars23 lines
This will print a list of attribute-value pairs for the graph, such as:
main.py60 chars2 lines
And the last three lines will display the graph visualization.
gistlibby LogSnag