python - Hybrid oriented multigraph networkx -
using networkx, there way make multigraph directed edges , bidirectional edges?
i can't use 2 oriented edges instead of bidirectional 1 because mean different things in graph. networkx.multidigraph()
alows directional edges , networkx.multigraph()
alows bidirectional edges.
my suggestion draw nodes, labels, draw edges twice once graph , other digraph on top of undirected or split 2 sets.
nx.draw_networkx_nodes(g) nx.draw_networkx_labels(g) nx.draw_networkx_edges(g) #directed nx.draw_networkx_edges(h) #undirected
if fails, can play around edgewidth cover directed , scale ones want seen.
Comments
Post a Comment