hiperwalk.WeightedGraph.degree#
- WeightedGraph.degree(vertex)#
Return the degree of the given vertex.
The degree of a vertex \(u\) in a graph is the number of edges incident to \(u\). Each Loop is counted once.
- Parameters:
- vertex
Any valid vertex representation.
Notes
The Graph class supports graphs with loops.