kotlin-utils
/
loggersoft.kotlin.utils.graph
/
Vertex
Vertex
interface
Vertex
<
V
:
Any
, out
E
:
Any
>
Content copied to clipboard
Represents interface of a graph's vertex.
Author
Alexander Kornilov (akornilov.82@gmail.com).
Functions
Properties
Functions
contains
Link copied to clipboard
open operator fun
contains
(edge:
Edge
<*, *>):
Boolean
Content copied to clipboard
Returns
true
if the vertex contains
edge
;
false
otherwise.
isConnectedWith
Link copied to clipboard
abstract fun
isConnectedWith
(value:
V
):
Boolean
Content copied to clipboard
Returns
true
if the vertex connected with
value
;
false
otherwise.
Properties
endsIn
Link copied to clipboard
abstract val
endsIn
:
Collection
<
Edge
<
V
,
E
>>
Content copied to clipboard
A list of edges which ends with this vertex.
startsIn
Link copied to clipboard
abstract val
startsIn
:
Collection
<
Edge
<
V
,
E
>>
Content copied to clipboard
A list of edges which starts from this vertex.
value
Link copied to clipboard
abstract val
value
:
V
Content copied to clipboard
A vertex parametrized value.