jsexauer / networkx_viewer

Interactive GUI for NetworkX graphs
GNU General Public License v3.0
137 stars 27 forks source link

DiGraph Edges Overlapping #15

Open giuseppe-sec-eng opened 8 years ago

giuseppe-sec-eng commented 8 years ago

If we have two directed graph from "a" to "b" and from "b" to "a" then they overlap and it is not easy to select them properly in order to visualize labels. A solution, similar to the one used to plot multiple edges between two nodes, that curves the edges should be used.

Example of code causing the problem:

import networkx as nx
from networkx_viewer import Viewer

G = nx.DiGraph()

G.add_edge('a','b')
G.add_edge('b','a')

app = Viewer(G)
app.mainloop()