szhorvat / IGraphM

IGraph/M is the igraph interface for Mathematica
http://szhorvat.net/mathematica/IGraphM
Other
90 stars 17 forks source link

Is it possible for IGGraphEditor to change the curvature of a straight edge by dragging and dropping? #127

Open lichengzhang1 opened 1 year ago

lichengzhang1 commented 1 year ago

Cross-posted at Mathematica stack.

<< IGraphM`
g = CompleteGraph[{2, 2, 2, 2}]
IGGraphEditor[g]

In IGGraphEditor, we can easily move vertices of the above graph $K_{2,2,2,2}$, but drawn edges are always straight lines and cannot be altered to be curved. zzz

For example, I prefer the following layout of $K_{2,2,2,2}.$

image

I don't know what is difficult about that? Because many dynamic drawing systems, such as houseofgraphs and layout = interactive in maple also only provide the ability to draw straight lines.

szhorvat commented 1 year ago

I'm happy to see that people enjoy using @kubaPod's graph editor!

My take on this is the following: