edges

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

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

Parameters

graph
Type: BasicGraph!(V, edgeDirection)

A graph.

Return Value

Type: auto

A ForwardRange through the edges of the graph.

Meta