AdjacencyList.addVertex

Adds a new vertex to the graph.

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

Parameters

value VertexProperty

The property value to associate with the vertex, if any.

Return Value

Returns a VertexDescriptor referencing the newly-added vertex.

Meta