GraphNeighboursTraversal

com.phasmidsoftware.gryphon.core.GraphNeighboursTraversal
abstract class GraphNeighboursTraversal[V, R](traversable: Traversable[V])(using random: Random)

Represents an abstract class for implementing traversal mechanisms on a given traversable structure. The common feature of subclasses is that they all delegate to the graphNeighbours method for the GraphNeighbours typeclass.

Type parameters

R

the type representing the result of the traversal

V

the type of the vertices in the traversable structure

Value parameters

random

an implicit random number generator used in the traversal logic

traversable

the traversable structure containing the vertices

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def traversal: R

Givens

Givens

given nbrs: GraphNeighbours[V]