Skip to content

eles.minOutdegree(includeLoops?)

eles.minOutdegree — Collection > Algorithms > Structural measures. Cytoscape.js signatures, parameters and return contract.

eles.minOutdegree — Collection › Algorithms › Structural measures

Preview · Collection › Algorithms › Structural measures

Read in the complete API reference · All API members

// The smallest out-degree among the collection's nodes
eles.minOutdegree(includeLoops?: boolean): number | undefined

The smallest out-degree among the collection's nodes.

Parameters
NameDescription
includeLoops: boolean?Default: true

whether self-loops count

Returns number | undefined

the minimum out-degree, or undefined when there are no nodes

Example

console.log(eles.minOutdegree()); // 0

Example graph and handle setup