VisitedSet

com.phasmidsoftware.visitor.core.VisitedSet
trait VisitedSet[V]

Typeclass: a set of visited nodes, used to prevent revisiting in cycle-containing graphs. Immutable — markVisited returns a new instance.

Type parameters

V

the node type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def isVisited(v: V): Boolean
def markVisited(v: V): VisitedSet[V]