AbstractVertex

com.phasmidsoftware.gryphon.core.AbstractVertex
abstract class AbstractVertex[V](val attribute: V, val adjacencies: Adjacencies[V]) extends Vertex[V]

Base class for all concrete vertex implementations.

Type parameters

V

the type of the vertex attribute.

Value parameters

adjacencies

the collection of adjacencies.

attribute

the data associated with this vertex.

Attributes

Graph
Supertypes
trait Vertex[V]
trait Attribute[V]
class Object
trait Matchable
class Any
Known subtypes
class RelaxableVertex[V, R]
class SimpleVertex[V]

Members list

Value members

Abstract methods

def unit(adjacencies: Adjacencies[V]): AbstractVertex[V]

Constructs a new instance of this vertex type with the given adjacencies, preserving all other fields.

Constructs a new instance of this vertex type with the given adjacencies, preserving all other fields.

Value parameters

adjacencies

the updated adjacency collection.

Attributes

Returns

a new vertex of the same concrete type.

Concrete methods

def +(a: Adjacency[V]): AbstractVertex[V]

Adds an adjacency, delegating construction to unit.

Adds an adjacency, delegating construction to unit.

Attributes

Inherited and Abstract methods

def render: String

Renders the vertex as a human-readable string.

Renders the vertex as a human-readable string.

Attributes

Returns

a string representation of the vertex.

Inherited from:
Vertex

Concrete fields

Retrieves the collection of adjacencies associated with the vertex.

Retrieves the collection of adjacencies associated with the vertex.

Attributes

Returns

an instance of Adjacencies[V] representing the connections from this vertex.

val attribute: V

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.