AttributedDirectedEdge

com.phasmidsoftware.gryphon.adjunct.AttributedDirectedEdge
See theAttributedDirectedEdge companion object
case class AttributedDirectedEdge[V, E](attribute: E, from: V, to: V) extends DirectedEdge[V, E]

Represents a directed edge in a graph structure, connecting a starting vertex (from) to an ending vertex (to) while carrying an associated attribute.

Type parameters

E

the type of the attribute associated with the edge.

V

the type of the vertex attributes connected by the edge.

Value parameters

attribute

a value representing additional information or weight associated with the edge.

from

the vertex where the directed edge originates.

to

the vertex where the directed edge terminates.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait DirectedEdge[V, E]
trait Edge[V, E]
trait Connexion[V]
trait Attribute[E]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def black: V

Retrieves the ending vertex of the edge. See NOTE above for white.

Retrieves the ending vertex of the edge. See NOTE above for white.

Attributes

Returns

the vertex where the edge terminates (the "black" vertex).

def white: V

Retrieves the starting Vertex of this Edge. If this is an UndirectedEdge, white and black represent the nominal direction. Individual adjacencies can be based on a flipped version of an UndirectedEdge.

Retrieves the starting Vertex of this Edge. If this is an UndirectedEdge, white and black represent the nominal direction. Individual adjacencies can be based on a flipped version of an UndirectedEdge.

Attributes

Returns

the vertex where the edge originates (the "white" vertex).

Inherited 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 from:
DirectedEdge
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