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
Parameter | Type | Description |
---|---|---|
vertex | Vertex | string | Vertex, or Vertex ID, to retrieve outdegree centrality for. |
Returns:
number
Vertex's indegree centrality.