You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this makes sense for SimpleGraphs, the method you defined for general graphs would not be guaranteed to work in general. Typically, there are some graphs that cannot exist without edges (think grids) so the constructor would fail.
I think it would be helpful to add constructors:
representing the more general concept of constructing a graph from a set of vertices. It would enable writing generic code like:
which would work with graphs that don't have simple vertices.
This is analogous to constructing Julia arrays from axes:
(though for whatever reason
Matrix{Float64}(undef, (Base.OneTo(3), Base.OneTo(3)))
doesn't work).The text was updated successfully, but these errors were encountered: