SimpleVertex

com.phasmidsoftware.gryphon.core.SimpleVertex
case class SimpleVertex[V](attribute: V, adjacencies: Adjacencies[V]) extends AbstractVertex[V]

A plain vertex carrying only an attribute and adjacencies. Replaces the old DiscoverableVertex now that the discovered flag has been removed.

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 Serializable
trait Product
trait Equals
class AbstractVertex[V]
trait Vertex[V]
trait Attribute[V]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete 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.

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def unit(adjacencies: Adjacencies[V]): SimpleVertex[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.

Inherited methods

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

Adds an adjacency, delegating construction to unit.

Adds an adjacency, delegating construction to unit.

Attributes

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