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

weighted-directed-graph cannot have two edges between vertices

Open moaxcp opened this issue 7 years ago • 0 comments

        given:
        Graph graph = graph {
            type: 'weighted-directed-graph'
            edge('A', 'B') { weight = 0 }
            edge('B', 'A') { weight = 0 }
        }
        def edges = graph.edges

        expect:
        edges.size() == 2

moaxcp avatar Mar 05 '18 01:03 moaxcp