com.raphtory.algorithms.generic.centrality.Degree

Degree

Degree()

return in-degree, out-degree, and degree of nodes

The degree of a node in an undirected networks counts the number of neighbours that node has. In directed networks, the in-degree of a note counts the number of incoming edges and the out-degree the number of outgoing edges.

States

inDegree: Int

The in-degree of the node

outDegree: Int

The out-degree of the node

degree: Int

The undirected degree (i.e. the overall number of neighbours)

Returns

vertex name

in-degree

out-degree

degree

name: String

inDegree: Int

outDegree: Int

degree: Int

See also

WeightedDegree