com.raphtory.algorithms.generic.NodeEdgeCount

NodeEdgeCount

NodeEdgeCount Stores/returns the number of nodes and edges in the graph.

This counts the number of nodes and edges in the perspective and returns them. We count both the number of “undirected” edges, treating the graph as a simple undirected graph, the number of directed edges, treating the graph as directed and simple, and the number of temporal edges which includes duplicate directed edges between the same pair of nodes.

States

numNodes: Int

Number of nodes in the perspective

directedEdges: Int

Number of directed edges in the perspective

undirectedEdges: Int

Number of undirected edges in the perspective

temporalEdges: Int

Number of directed edges with multiplicity in the perspective

Returns

no nodes

no directed edges

no undirected edges

no temporal edges

numNodes: Int

directedEdges: Int

undirectedEdges: Int

temporalEdges: Int