vertices

Given any type of graph, produce a range through the vertices of the graph.

  1. auto vertices(auto ref BasicGraph!(V, edgeDirection) graph)
    @nogc @safe pure nothrow
    vertices
    (
    V
    EdgeDirection edgeDirection
    )
    (
    auto ref BasicGraph!(V, edgeDirection) graph
    )
  2. auto vertices(auto ref const(BasicGraph!(V, edgeDirection)) graph)
  3. auto vertices(auto ref immutable(BasicGraph!(V, edgeDirection)) graph)

Parameters

graph
Type: BasicGraph!(V, edgeDirection)

A graph.

Return Value

Type: auto

A ForwardRange through the vertices of the graph.

Meta