Click or drag to resize
AdjacencyListWeightedDirectedGraphTAddSingleEdge Method
Adds one edge between two vertices in this graph in O(1), weighted with the given value.

Namespace: Slash.Collections.Graphs
Assembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntax
public void AddSingleEdge(
	T firstNode,
	T secondNode,
	int edgeWeight
)

Parameters

firstNode
Type: T
Source vertex of the edge.
secondNode
Type: T
Target vertex of the edge.
edgeWeight
Type: SystemInt32
Weight of the new edge.
See Also