Pairs

com.phasmidsoftware.gryphon.core.Pairs
trait Pairs[V, Z]

A trait that defines a structure for managing pairs of vertices with an associated value.

The purpose of Pairs is to represent relationships or connections between pairs of vertices of type V, with an additional associated value of type Z for each pair.

Type parameters

V

the type of the vertices in the pairs.

Z

the type of the additional value associated with each pair of vertices.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Edges[V, E]
class EdgeList[V, E, Z]
class VertexPairList[V]

Members list

Value members

Abstract methods

def pairs: Seq[(V, V, Z)]

Returns a sequence of vertex pairs. Each tuple in the sequence represents a relationship or connection between two vertices of type V in the graph.

Returns a sequence of vertex pairs. Each tuple in the sequence represents a relationship or connection between two vertices of type V in the graph.

Attributes

Returns

a sequence of tuples, where each tuple contains two vertices of type V.