Package org.graph4j.util
Class Trail
java.lang.Object
org.graph4j.util.VertexCollection
org.graph4j.util.VertexList
org.graph4j.util.Walk
org.graph4j.util.Trail
A trail is a walk with no repeated edge. Vertices can repeat. Edges
can not repeat.
In order to ensure these properties are respected, call
validate.
A trail is closed if the last vertex equals the first one.
The length of a walk is its number of edges.- Author:
- Cristian Frăsinaru
- See Also:
-
Field Summary
Fields inherited from class org.graph4j.util.VertexCollection
bitset, DEFAULT_CAPACITY, first, graph, numVertices, vertices -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.graph4j.util.Walk
add, checkEdge, checkEdges, computeEdgesWeight, equals, hashCode, isClosed, isDirected, length, reverse, toString, typeMethods inherited from class org.graph4j.util.VertexList
addAll, get, indexOf, indexOf, insert, remove, removeFromPos, set, union, unionMethods inherited from class org.graph4j.util.VertexCollection
clear, computeVerticesWeight, contains, getGraph, grow, isClique, isEmpty, isStableSet, iterator, numVertices, removeAll, removeLast, retainAll, size, union, vertexToString, verticesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator