DirectedEdge

com.phasmidsoftware.gryphon.adjunct.DirectedEdge
trait DirectedEdge[V, E] extends Edge[V, E]

An abstract trait representing a directed edge in a graph.

This trait extends the Edge trait, providing a specific implementation for the edgeType method, which always returns Directed. The directed edge represents a one-way connection between two vertices.

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 Edge[V, E]
trait Connexion[V]
trait Attribute[E]
class Object
trait Matchable
class Any
Show all
Known subtypes
class OrderedEdge[V]

Members list

Value members

Concrete methods

Returns the type of the edge represented by this object.

Returns the type of the edge represented by this object.

Attributes

Returns

the edge type, which is always Directed for this implementation.

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