UndirectedGraph.this

Construct a graph from a set of nodes (and edges).

  1. this(Node[] nodes)
  2. this(Node[] nodes, Edge[] edges)
    struct UndirectedGraph(Node, Weight = void)
    this
    (
    Node[] nodes
    ,)

Throws

NodeExistsException if a node already exists when trying to insert it. EdgeExistsException if an edge already exists when trying to insert it.

Meta