com.phasmidsoftware.gryphon.core.AbstractVertex
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
-
class Object
trait Matchable
class Any
- Known subtypes
-
Members list
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.
Adds an adjacency, delegating construction to unit.
Adds an adjacency, delegating construction to unit.
Attributes
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
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.
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.