 | IWeightedGraphTGetEdgeWeight Method |
Gets the weight of the edge between the specified vertices.
Namespace: Slash.Collections.GraphsAssembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntaxint GetEdgeWeight(
T firstNode,
T secondNode
)
Function GetEdgeWeight (
firstNode As T,
secondNode As T
) As Integer
int GetEdgeWeight(
T firstNode,
T secondNode
)
abstract GetEdgeWeight :
firstNode : 'T *
secondNode : 'T -> int
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