JuliaGraphs / GraphPlot.jl

Graph visualization for Julia.
http://JuliaGraphs.github.io/GraphPlot.jl/
Other
200 stars 62 forks source link

Feature request: specify relative location for edgelabel along the edgelength #195

Open hdavid16 opened 1 year ago

hdavid16 commented 1 year ago

PR #186 allows placing edge labels on the middle of an edge, whether it be curved or straight. It would be nice to have a kwarg for gplot that will allow the user to specify the position in the range 0 to 1 for the relative location along the edge (e.g., 0.5 = midpoint, 0 = startpoint, 1 = endpoint). This can easily be done by changing the 0.5 to the parameter value in the section of gplot where the edgelabels are placed.