 | AdjacencyListWeightedDirectedGraphTDegree Method |
Returns the degree of the given vertex,
in other words the number of adjacent vertices, in O(1).
Namespace: Slash.Collections.GraphsAssembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntaxpublic int Degree(
T node
)
Public Function Degree (
node As T
) As Integer
public:
virtual int Degree(
T node
) sealed
abstract Degree :
node : 'T -> int
override Degree :
node : 'T -> int
Parameters
- node
- Type: T
Vertex to get the degree of.
Return Value
Type:
Int32Degree of the vertex.
Implements
IWeightedGraphTDegree(T)
See Also