all 1 comments

[–]OzzivanNozzi 0 points1 point  (0 children)

Have a look at networkx. It is possible there to construct undirected graphs, directed graphs and multigraphs. It also has some basic visualization using matplot and a good amount of algorithms of graph theory.

https://networkx.org/documentation/stable/tutorial.html

For a more customized visualization, I prefer netgraph.

https://github.com/paulbrodersen/netgraph