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

Traversal method closure should take 'from' and 'to' as arguments

Open moaxcp opened this issue 7 years ago • 0 comments

This will allow the user to lookup the edge between the two vertices and modify it.

preOrder('A') { from, to ->
    from.fillcolor = 'green'
    to.fillcolor = 'green'
    edge(from.key, to.key) {
        color = 'green'
    }
}

moaxcp avatar May 21 '18 02:05 moaxcp