EdgeTraversalResult
com.phasmidsoftware.gryphon.traverse.EdgeTraversalResult
case class EdgeTraversalResult[V, E, T](ts: List[T]) extends AbstractEdgeTraversalResult[T]
A case class representing the concrete implementation of edge traversal for a graph-like structure.
This class enables the traversal of edges by providing a list of precomputed results of type T associated with each edge.
Edge traversal uses the defined behavior from the AbstractEdgeTraversalResult base class, where vertexTraverse throws an exception, and edgeTraverse retrieves the traversal result from the precomputed list based on the edge index.
Type parameters
- E
-
the type representing an edge in the graph.
- T
-
the type of results for the edge traversal.
- V
-
the type representing a vertex in the graph.
Value parameters
- ts
-
a list of elements of type
Trepresenting the computed results of edge traversal.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AbstractEdgeTraversalResult[T]class Objecttrait Matchableclass Any
Members list
In this article