AdjacencyVertex

com.phasmidsoftware.gryphon.core.AdjacencyVertex
See theAdjacencyVertex companion object
case class AdjacencyVertex[V](vertex: V) extends Adjacency[V]

Represents an adjacency defined purely by a vertex (no associated edge).

Type parameters

V

the type of the vertex attribute.

Value parameters

vertex

the vertex associated with this adjacency.

Attributes

Companion
object
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[E]: Option[Edge[V, E]]

Retrieves the Edge associated with this adjacency, if one exists.

Retrieves the Edge associated with this adjacency, if one exists.

Attributes

Returns

an Option[Edge[V, E]] containing the Edge if present, or None.

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