Appends node to the current path and record this path against the node.
Appends node to the current path and record this path against the node.
the node being visited
Resets the path collection
Priority queue and comparator for sorting top paths.
Priority queue and comparator for sorting top paths. Reused across nodes.
true if entry for node
exists, false otherwise
the total number of unique paths that end at node
Reset the current path
the number of top paths to return for a node
an array of tuples, each containing a node and array of top paths ending at node, with scores
a map of {path -> count} for paths ending at node
, sorted in decreasing order of count.
Paths with the same count are sorted shortest path first.
Returns at most num
pairs in the map.
the total number of unique paths in this collection
Represents a collection of directed paths. For example, a collection of paths out of the same source node.