graph-dsl
graph-dsl copied to clipboard
weighted-directed-graph cannot have two edges between vertices
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