Click or drag to resize
IWeightedGraphTGetEdgeWeight Method
Gets the weight of the edge between the specified vertices.

Namespace: Slash.Collections.Graphs
Assembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntax
int GetEdgeWeight(
	T firstNode,
	T secondNode
)

Parameters

firstNode
Type: T
First vertex to check.
secondNode
Type: T
Second vertex to check.

Return Value

Type: Int32
Edge weight of the edge between the two vertices, if there is one, and -1 otherwise.
See Also