graph-dsl icon indicating copy to clipboard operation
graph-dsl copied to clipboard

undirected graph should support 'connectsFrom'

Open moaxcp opened this issue 7 years ago • 0 comments

connectsFrom creates an edge with 'two' set to the current vertex. It is the opposite of connectsTo where 'one' is set to the current vertex. It is useful for undirected graph to support this in the case that it is later converted to a directed graph.

vertex('A') {
    connectsFrom('B")
}

creates edge from 'B' to 'A' in an undirected graph.

moaxcp avatar May 20 '18 10:05 moaxcp