Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
Graph Class
Graph Methods
AddEdge Method
Adj Method
Degree Method
MainTest Method
ToString Method
Graph
Degree Method
Returns the degree of vertex
v
.
Namespace:
Algs4Net
Assembly:
Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
int
Degree
(
int
v
)
Parameters
v
Type:
System
Int32
the vertex
Return Value
Type:
Int32
the degree of vertex
v
Exceptions
Exception
Condition
IndexOutOfRangeException
unless 0 <= v < V
See Also
Reference
Graph Class
Algs4Net Namespace