Graph.put

Adds a vertex if it does not already exist.

  1. void put(Vertex v)
    class Graph(A, B, EdgeDataAB = size_t, EdgeDataBA = size_t)
    pure
    void
    put
    (
    Vertex
    )
    (
    Vertex v
    )
    if (
    isVertex!Vertex
    )
    if (
    !is(A == B)
    )
  2. void put(A from, B to, EdgeDataAB data)
  3. void put(B from, A to, EdgeDataBA data)

Meta