Skip to main content

Home > @jsplumbtoolkit/core > Graph > getIndegreeCentrality

Graph.getIndegreeCentrality() method

Returns the indegree centrality of the given vertex (number of connections entering the vertex)

Signature:

getIndegreeCentrality(vertex: Vertex | string): number;

Parameters

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

Returns:

number

Vertex's indegree centrality.