Traverses in FIFO (breadth first) order but without any limit on the number of times every node can be visited.
This class is an implementation of the directed graph trait that is backed by an array The private constructor takes as its input a list of (@see Node) nodes, then stores nodes in an array.
Bounds an iterator to go no more than a specified maximum number of steps
Traverses in BFS order.
Traverses in DFS order (every node can be visited only once).
A traverser that keeps track of first depth of visiting a given node.
The entry point into a model of a directed graph.
This class contains some common utilities and convenience functions for directed graphs.
Represents a directed path of nodes in a graph.
Represents a collection of directed paths.
Trait to be mixed in to the BFS/DFS traverser to add discovery and finishing times of a node.
A class support dynamically adds new nodes and dynamically add/delete edges in existing nodes.
A class supporting dynamic addition of new nodes and addition/deletion of edges in existing nodes.
The entry point into a model of a directed graph.
This class contains some common graph utilities and convenience functions.
Represents a node in a directed graph.
This case class holds a node's id, all its out edges, and the max id of itself and ids of nodes in its out edges
A trait to be mixed in to the DepthFirstTraverser that keeps track of visiting distance
from homeNodeIds
.
General schema for some Traversers (like BFS, DFS).
Same as RandomTraverser except that the number of steps taken is bounded by maxSteps
Randomly traverse the graph, going from one node to a random neighbor in direction dir
.
This class is an implementation of the directed graph trait that is backed by a sharded 2-dimensional edges array.
A class support dynamically adds new nodes and dynamically add/delete edges in existing nodes.
A simple implementation of a DirectedGraph
A Traverser traverses the graph in a certain order of nodes.
A representation of the two directions edges point in a directed graph.
This class contains common graph node based utilities and convenience functions.
provides methods for constructing a shared array based graph
Some sample graphs for quick testing in tests.