Edge

com.phasmidsoftware.gryphon.core.Edge
trait Edge[V, E] extends Attribute[E], Connexion[V]

Defines an abstraction for an edge in a graph structure that connects two vertices. An Edge may be directed or undirected, and it carries an attribute of type E.

The connection is established between two vertices of type V, referred to as white and black. The type (directionality) of the edge, as well as whether it allows traversal in one or both directions, is given by the edgeType field.

Type parameters

E

the type of the attribute associated with the edge.

V

the type of the vertices connected by the edge.

Attributes

Graph
Supertypes
trait Connexion[V]
trait Attribute[E]
class Object
trait Matchable
class Any
Known subtypes
trait DirectedEdge[V, E]
class OrderedEdge[V]
class UndirectedEdge[V, E]
trait OrderableEdge[V, E]

Members list

Value members

Abstract methods

Retrieves the type of the edge (e.g., directed or undirected).

Retrieves the type of the edge (e.g., directed or undirected).

Attributes

Returns

an instance of EdgeType that describes whether the edge is directed (one-way) or undirected (two-way).

Inherited and Abstract methods

def attribute: E

Retrieves the attribute of type A associated with this instance.

Retrieves the attribute of type A associated with this instance.

Attributes

Returns

the attribute of type A representing the defining characteristic or property of this instance.

Inherited from:
Attribute
def black: V

Retrieves the black Vertex of this Connexion. If this is a DirectedEdge, this vertex represents the end. If this is an UndirectedEdge, see the note above for white.

Retrieves the black Vertex of this Connexion. If this is a DirectedEdge, this vertex represents the end. If this is an UndirectedEdge, see the note above for white.

Attributes

Returns

the "black" vertex.

Inherited from:
Connexion
def white: V

Retrieves the white Vertex of this Connexion. If this is a DirectedEdge, this vertex represents the start. If this is an UndirectedEdge, white to black represents the nominal direction. Individual adjacencies can be based on a flipped version of an UndirectedEdge.

Retrieves the white Vertex of this Connexion. If this is a DirectedEdge, this vertex represents the start. If this is an UndirectedEdge, white to black represents the nominal direction. Individual adjacencies can be based on a flipped version of an UndirectedEdge.

Attributes

Returns

the "white" vertex.

Inherited from:
Connexion