AdjacencyEdge

com.phasmidsoftware.gryphon.core.AdjacencyEdge
case class AdjacencyEdge[V, E](connexion: Connexion[V], flipped: Boolean = ...) extends Adjacency[V]

Represents an adjacency in the form of an edge within a graph structure. In the case of an undirected edge, flipped indicates which direction is used.

Type parameters

E

the type of the edge attributes.

V

the type of the vertex attributes.

Value parameters

connexion

the edge instance containing vertex connection and attribute information.

flipped

true if the nominal direction of the edge is reversed.

Attributes

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

Members list

Value members

Concrete methods

def maybeEdge[E2]: Option[Edge[V, E2]]

Returns the edge if the connexion is an Edge instance.

Returns the edge if the connexion is an Edge instance.

Attributes

def vertex: V

Returns the destination vertex for this adjacency. If flipped, returns white; otherwise black.

Returns the destination vertex for this adjacency. If flipped, returns white; otherwise black.

Attributes

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