Hi all, am looking to generate this graph in python. Thanks.

Can you restate your problem.

Is it related to Rhino3D Grasshopper, python, and/or Graphviz?

If you are asking about FSM in Graphviz, check out Finite Automaton | Graphviz

@steveroush Thank you for the quick reply. I wish to generate these diagrams in Rhino3D Grasshopper using python code/any. And wish to get the vertices list and distance. Do we have any provisions?

Iâ€™m a little unsure what youâ€™re asking. Could you elaborate?

Whatâ€™s the broader problem youâ€™re trying to solve here? Why do you want to generate that graph in Python? Youâ€™ve attached the graph to the post; it seems you already perhaps have the graph? Or do you want to generate a graph like that? What are you doing with Rhino3D Grasshopper? What does distance mean?

I wish to make this type of network graph in Grasshopper Python.

the distance is related to the distance between nodes.

Then youâ€™re at the wrong forum. This forum is about the Graphviz tool suite only.

I am not a user of Rhino3D Grasshopper, but i found in google that

GraphViz and NetworkX implemented in GHPython

So it looks like you can use the python libraries like NetworkX or maybe even graphviz, into Grasshopper. These libraries have good documentation with examples of their graphs-drawing using GraphViz, including how to assign labels to edges where you can write the distance.

Thank you.

Youâ€™re welcome, by the way, I too late with my answer, that thread Generation of Network graphs in Grasshopper - #14 by AndersDeleuran - Grasshopper - McNeel Forum has already been answered before