VertexPair

com.phasmidsoftware.gryphon.core.VertexPair
case class VertexPair[V](white: V, black: V) extends Connexion[V]

A case class representing a specific instance of a Connexion between two vertices in a graph.

This class extends the Connexion trait, providing a concrete representation of a connexion between two vertices, identified as white and black. These terms are used to distinguish the two vertices in an abstract way, without implying any ordering or directional meaning.

Type parameters

V

the type of the vertices forming the connection. This parameter allows flexibility to support any user-defined type representing a vertex.

Value parameters

black

the second vertex in the connection, referred to as black.

white

the first vertex in the connection, referred to as white.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Connexion[V]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product