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
as a way to generically create a graph of the same type G without any edges with either the specified vertex collection or number of vertices. Additionally this could be used as an interface for creating a similar graph with a new vertex type, and new vertex data and edge data types in the case of data graphs.
Graphs.jl
doesn't seem to provide a generic interface for creating graphs of the same type without any edges, and possibly with new vertices.The closest concept in Julia seems to be
Base.similar
, for example for sparse arrays:though for some reason it doesn't work for types:
We could adopt the interface:
as a way to generically create a graph of the same type
G
without any edges with either the specified vertex collection or number of vertices. Additionally this could be used as an interface for creating a similar graph with a new vertex type, and new vertex data and edge data types in the case of data graphs.Originally posted by @mtfishman in #32 (comment)
The text was updated successfully, but these errors were encountered: