Closed BrettKnoss closed 2 years ago
num_vertices
was the old method, now replaced by nv
. I don't see exactly where you see this example in the documentation, but there is effectively some occurences of num_vertices
and num_edges
in the docs.
Passing [1:34]
for nodelabel
should not work because this is a vector of ranges, you should just pass 1:34
or use gplot(g,nodelabel=vertices(g))
Tell me if you see another place where you see num_vertices
, since I did not found the exact occurrence of your documentation.
hello @etiennedeg, https://juliagraphs.org/GraphPlot.jl/ still uses num_vertices and other outdated functions. If this is an issue not for GraphPlot but for juliagraph.github.io, I'm sorry for pointing this out in a wrong place.
The documentation for GraphPlots has:
but num_vertices and Graphs.num_vertices are undefined. Is this from a different version of Graphs.jl ?
vertices(g) outputs BaseOneTo(34) and nv(g) outputs 34
but gplot(g,nodelabel=[1:34]) outputs:
I can see that the number of nodes should be correct, but I'm not sure where the issue is.