AdjacencyList.addEdge

Adds an edge to the graph.

struct AdjacencyList(alias VertexStorage = VecS, alias EdgeStorage = VecS, Directionality = DirectedS, VertexProperty = NoProperty, EdgeProperty = NoProperty)
addEdge
(,,
EdgeProperty value = EdgeProperty.init
)

Parameters

src VertexDescriptor

The VertexDescriptor of the edge's starting point.

dst VertexDescriptor

The VertexDescriptor of the new edge's end point.

value EdgeProperty

The value to associate with the new edge, if any.

Return Value

Returns an AddEdgeResult value, containinf the descriptor of the edge, and a flag to let you know if it was newly created (true), or the edge already esisted and the graph type doesn't support parallel edges, so the returned descriptor refers to the pre-existing edge (false).

Meta