Vertex

interface Vertex<V : Any, out E : Any>

Represents interface of a graph's vertex.

Author

Alexander Kornilov (akornilov.82@gmail.com).

Functions

contains
Link copied to clipboard
open operator fun contains(edge: Edge<*, *>): Boolean
Returns true if the vertex contains edge; false otherwise.
isConnectedWith
Link copied to clipboard
abstract fun isConnectedWith(value: V): Boolean
Returns true if the vertex connected with value; false otherwise.

Properties

endsIn
Link copied to clipboard
abstract val endsIn: Collection<Edge<V, E>>
A list of edges which ends with this vertex.
startsIn
Link copied to clipboard
abstract val startsIn: Collection<Edge<V, E>>
A list of edges which starts from this vertex.
value
Link copied to clipboard
abstract val value: V
A vertex parametrized value.