Connexions

com.phasmidsoftware.gryphon.traverse.Connexions
See theConnexions companion class
object Connexions

Provides utility methods for creating and managing instances of the ProtoConnexions class, which represents a specific traversal of vertices within a graph resulting from a depth-first search starting at a particular vertex.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Connexions.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def create[V, E](graph: Traversable[V])(start: V): Connexions[V, E]

Creates a ProtoConnexions instance representing a traversal of a graph using depth-first search (DFS). The traversal starts from the specified vertex, processes each vertex using the provided function, and returns the resulting connexions.

Creates a ProtoConnexions instance representing a traversal of a graph using depth-first search (DFS). The traversal starts from the specified vertex, processes each vertex using the provided function, and returns the resulting connexions.

Type parameters

E

the type representing the edge attribute in the traversal.

V

the type representing a vertex in the graph.

Value parameters

graph

the graph-like structure to be traversed, of type core.Traversable[V].

start

the starting vertex for the DFS traversal, of type V.

Attributes

Returns

a ProtoConnexions object that encapsulates the result of the traversal, mapping vertices to their respective directed edges.

def empty[V, E]: Connexions[V, E]

Creates an empty instance of the ProtoConnexions class, representing a traversal with no vertices or edges.

Creates an empty instance of the ProtoConnexions class, representing a traversal with no vertices or edges.

Type parameters

V

the type representing a vertex in the graph.

Attributes

Returns

an empty ProtoConnexions instance.