Tries to add edge
to the tail of the path/walk.
Tries to add edge
to the tail of the path/walk.
Whether the addition was successful.
Tries to add node
to the tail of the path/walk.
Tries to add node
to the tail of the path/walk.
Whether the addition was successful.
The node this walk starts at.
The node this walk starts at.
Tries to add edge
to the tail of the path/walk.
Tries to add edge
to the tail of the path/walk.
Tries to add node
to the tail of the path/walk.
Tries to add node
to the tail of the path/walk.
Tries to add elem
to the tail of the path/walk.
Tries to add elem
to the tail of the path/walk.
Tries to add elem
to the tail of the path/walk.
Tries to add elem
to the tail of the path/walk.
Whether the addition was successful.
(pathBuilder: OuterNode[PathBuilder]).toString()
A
Builder
for valid paths in this graph.Nodes and edges may be added either alternating or node by node respectively edge by edge. Either way, the builder ensures that the added elements build a valid path.
A node addition fails if either the node to be added is already contained or the node is not a direct successor of the previously added node or of the target node of the previously added edge. An edge addition fails if either the edge to be added is is already contained or the edge is not an outgoing edge from the previously added node or of the target node of the previously added edge.
It is recommended using
add
instead of+=
to track failed additions.