This document is archived and information here might be outdated. Recommended version. |
Returns the degree of the specified node.
[Visual Basic .NET]
Public Function GetNodeDegree ( _
ByVal nodeIndex As Integer, _
ByVal bEnforcedEdgesOnly As Boolean _
) As Integer
[C#]
public int GetNodeDegree (
int nodeIndex,
bool bEnforcedEdgesOnly
);
[C++]
HRESULT GetNodeDegree(
long nodeIndex,
VARIANT_BOOL bEnforcedEdgesOnly
);
[C++] Parameters nodeIndex [in]
nodeIndex is a parameter of type long bEnforcedEdgesOnly [in]
bEnforcedEdgesOnly is a parameter of type bool
GetNodeDegree returns the number of edges incident to the node. If bEnforcedEdgesOnly is set to True then only the number of hard and soft break edges are counted.
This member uses the SingleEdge interpretation where only one edge between node pairs is considered.