# degree¶

degree(nodeNumber)
Returns the degree of a node.
nodeNumber: integer
The number of the node whose degree shall be returned.

## Notes¶

If is the number of nodes in the network and is its adjacency matrix (i.e. , if there is an edge connecting node to node , and otherwise), the degree is of node is defined as:

## Example (python-conedy)¶

import conedy as co

N = co.network()

print "Should be 0:" + str(N.degree(0))
print "Should be 1:" + str(N.degree(0))


## Example (conedy)¶

network N;

print "Should be 0:" + N.degree(0) + newline;
print "Should be 1:" + N.degree(0) + newline;