JuliaGraphs / GraphsBase.jl

Basic interface and structures for the JuliaGraphs ecosystem
http://juliagraphs.org/GraphsBase.jl/
MIT License
11 stars 1 forks source link

Constructors for 2.0 #34

Open etiennedeg opened 2 months ago

etiennedeg commented 2 months ago

Here is a thread for discussing the constructors for Graphs 2.0

Current constructors

Constructors for SimpleGraph

Goals for 2.0

We will have a new concrete graph type Graph{V} which can represent arbitrary vertices. We would need new constructors to be able to construct such new graphs.

Instead of passing nv, we should provide a list (or even an iterator ?) of the vertices of the graph.

As the type of vertices can be arbitrary, the type signatures of generators can quickly become a mess / incompatible

Also we will need to support multigraphs

My proposal

Is this proposal sound? Do you have some other ideas of generators? A better proposal?