GraphRecipes.jl icon indicating copy to clipboard operation
GraphRecipes.jl copied to clipboard

[BUG] last unconnected vertices not drawn

Open ljournot opened this issue 4 years ago • 0 comments

I noticed a strange behavior while ploting a graph.

using LightGraphs, Plots, GraphRecipes # LightGraphs v1.3.5, Plots v1.10.6, GraphRecipes v0.5.4 g = SimpleGraph(7) add_edge!(g, 2, 3) add_edge!(g, 3, 4) graphplot(g) graph1

-> Draw 4 vertices only, not seven. One vertex is unconnected (# 1), vertices 2, 3, and 4 are connected.

add_edge!(g, 6, 7)

graphplot(g) graph2

-> all edges are drawn, including # 1 and # 5 that are unconnected.

Is this the expected behavior of graphplot ?

ljournot avatar Mar 08 '21 21:03 ljournot