Package io. github. cfraser. graphit
Types
AcyclicException is thrown when a path between the vertices would violate the acyclic constraint in the graph.
BreadthFirst represents a breadth-first search of the Graph, beginning at the vertex.
DepthFirst represents a depth-first search of the Graph, beginning at the vertex.
EdgeAlreadyExists is thrown when an edge between the vertices already exists in the graph.
EdgeNotFound is thrown when an edge between the vertices is not found in the graph.
GraphBuilder enables the addition of vertices and edges to a Graph.
GraphException is the base RuntimeException type representing erroneous Graph operations.
LoopException is thrown when an edge connects a vertex to itself.
NoPathExists is thrown when no path between the vertices exists in the graph.
TraversalStrategy determines the order in which the vertices in a Graph are traversed.
UndirectedException is thrown when an undirected graph attempts to find strongly connected components.
VertexNotFound is thrown when an expected vertex is not found in the graph.
Vertices is a vertex Pair which may, or may not, be connected by an Edge.
In a directed Graph, the order of the Vertices is consequential. Specifically, the Pair.first corresponds to the Edge.source, while Pair.second corresponds to the Edge.target.
WeightedGenericEdge is an Edge implementation that is a combination of WeightedEdge and GenericEdge.
Functions
Properties
isAcyclic returns true
if Feature.ACYCLIC is in the Graph.features.
isDirected returns true
if Feature.DIRECTED is in the Graph.features.
isUndirected returns true
if Feature.DIRECTED is not in the Graph.features.