Skip to main content

Home > @jsplumbtoolkit/core > Graph > getOutdegreeCentrality

Graph.getOutdegreeCentrality() method

Returns the outdegree centrality of the given vertex (number of connections exiting the vertex)

Signature:

getOutdegreeCentrality(vertex: Vertex | string): number;

Parameters

ParameterTypeDescription
vertexVertex | stringVertex, or Vertex ID, to retrieve outdegree centrality for.

Returns:

number

Vertex's indegree centrality.