ReadonlyedgeThe edge index of each edge in the graph the algorithm ran on, by position (Java:
edgeIndices()); not to be modified.
Time: O(1).
ReadonlysourceThe source of each edge, by position (Java: sourceNodes()); not to be modified.
Time: O(1).
ReadonlytargetThe target of each edge, by position (Java: targetNodes()); not to be modified.
Time: O(1).
The number of edges (Java: count()).
Time: O(1).
Whether there are no edges. Equivalent to count === 0 (Java: isEmpty()).
Time: O(1).
StaticofReturns the edges of one type from an edge classification, in edge index order.
Each call goes through every edge, however few have the type: call it once per type and keep the result.
Time: O(nodeCount + edgeCount). Memory: 12 bytes per edge of the result.
the edges of type type
Error if type is not one of EdgeType; this includes undefined and null
(Java: NullPointerException for null)
A list of edges of a graph, each with its source, target and edge index. Algorithms such as BackEdges.of and Biconnectivity.bridges return it.
The edge at position
p, in0..count-1, issourceNodes[p] -> targetNodes[p], andedgeIndices[p]is its edge index in the graph the algorithm ran on. The edge index finds the data of the edge in the caller's arrays indexed by edge index, without a search. Here, the back edges of the calls between the methods of a program are its recursive calls.namesholds the names of the methods, andsiteCountholds the number of call sites of each call, by edge index:Each method that returns
Edgessays in which order the edges come. GraphBuilder.addEdges adds them to a graph under construction.Each of the three lists is an
Int32Arraythat must not be modified (Java: an unmodifiable list). Instances are immutable.Memory: 12 bytes per edge.