addEdge

open fun addEdge(startFrom: V, endWith: V, value: E, isOriented: Boolean = true, isDynamicWeight: Boolean = false, hasWeight: Boolean = true, weight: Double = Edge.DefaultWeight): Edge<V, E>

Creates and add a new edge to the graph by several parameters. If startFrom or endWith values don't present in graph them will be added as new vertexes.

Return

the created edge.

abstract fun addEdge(edge: Edge<V, E>): Edge<V, E>

Adds a new edge.

Return

itself.