Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
EdgeWeightedGraph Class
EdgeWeightedGraph Methods
AddEdge Method
Adj Method
Degree Method
Edges Method
MainTest Method
ToString Method
EdgeWeightedGraph
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
v the vertex
Return Value
Type:
Int32
the degree of vertex
v
Exceptions
Exception
Condition
IndexOutOfRangeException
unless 0 <= v < V
See Also
Reference
EdgeWeightedGraph Class
Algs4Net Namespace