Base asbtraction of the graph-like data structures.
Type parameters
- N
-
The type of the nodes in the graph.
Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
trait GenericGraph[N]class GenericReverseGraph[N]class GenericGraphImpl[N]class MapGraph[N]class IntMapGraphclass MutableMapGraph[N]class ReversedMutableMapGraph[N]Show all
Members list
Value members
Abstract methods
The adjacent nodes for each node.
The adjacent nodes for each node.
Attributes
Whether the graph contains the node.
Whether the graph contains the node.
Attributes
The edges in the graph.
The edges in the graph.
Attributes
The number of edges in the graph.
The number of edges in the graph.
Attributes
Whether the node has any adjacent nodes.
Whether the node has any adjacent nodes.
Attributes
The nodes in the graph.
The nodes in the graph.
Attributes
The number of nodes in the graph.
The number of nodes in the graph.
Attributes
Concrete methods
Breath-first search of the whole graph
Breath-first search of the whole graph
Attributes
Breath-first search of the graph starting at given node
Breath-first search of the graph starting at given node
Attributes
Depth-first search of the whole graph
Depth-first search of the whole graph
Attributes
Depth-first search of the whole graph in the given node's order
Depth-first search of the whole graph in the given node's order
Attributes
Depth-first search (recursive) of the graph starting at given node
Depth-first search (recursive) of the graph starting at given node
Attributes
Depth-first search (iterative) of the graph starting at given node
Depth-first search (iterative) of the graph starting at given node
Attributes
Find cycles in the graph.
Find cycles in the graph.
Attributes
Find cycles in the graph starting at given node.
Find cycles in the graph starting at given node.
Attributes
Check if the graph has cycles.
Check if the graph has cycles.
Attributes
Merges two graphs without duplicating existing nodes
Merges two graphs without duplicating existing nodes
Attributes
Merge two nodes in the mutable map graph.
Merge two nodes in the mutable map graph.
Attributes
Returns a new graph containing only all the transitive predecessors and successors of the given node.
Returns a new graph containing only all the transitive predecessors and successors of the given node.
Attributes
Returns a new graph containing only all the transitive predecessors and successors of the given nodes.
Returns a new graph containing only all the transitive predecessors and successors of the given nodes.
Attributes
Returns a new graph containing only all the transitive predecessors of the given node.
Returns a new graph containing only all the transitive predecessors of the given node.
Attributes
Returns a new graph containing only all the transitive predecessors of the given nodes.
Returns a new graph containing only all the transitive predecessors of the given nodes.
Attributes
Count the number of random cuts in the graph.
Count the number of random cuts in the graph.
Attributes
Sort the graph topologically.
Sort the graph topologically.
Attributes
Returns a new graph containing only all the transitive successors of the given node.
Returns a new graph containing only all the transitive successors of the given node.
Attributes
Returns a new graph containing only all the transitive successors of the given nodes.
Returns a new graph containing only all the transitive successors of the given nodes.