kotlin-utils
/
loggersoft.kotlin.utils.graph
/
edge
edge
inline fun <
V
:
Any
,
E
:
Any
>
edge
(startFrom:
V
, endWith:
V
, value:
E
, isOriented:
Boolean
= true, hasWeight:
Boolean
= true, weight:
Double
= Edge.DefaultWeight):
Edge
<
V
,
E
>
Content copied to clipboard
Creates a static edge.
inline fun <
V
:
Any
,
E
:
AbstractEdge
>
edge
(startFrom:
V
, endWith:
V
, value:
E
):
Edge
<
V
,
E
>
Content copied to clipboard
Creates a custom edge.