Closed robindaumann closed 5 years ago
For the following code:
Graph.new(type: :undirected) |> Graph.add_vertices([:a, :b]) |> Graph.add_edge(:a, :b) |> Graph.edges(:a, :b)
works as expected [%Graph.Edge{label: nil, v1: :a, v2: :b, weight: 1}] but
[%Graph.Edge{label: nil, v1: :a, v2: :b, weight: 1}]
Graph.new(type: :undirected) |> Graph.add_vertices([:a, :b]) |> Graph.add_edge(:a, :b) |> Graph.edges(:b, :a)
does return an empty list [].
[]
For the following code:
works as expected
[%Graph.Edge{label: nil, v1: :a, v2: :b, weight: 1}]
butdoes return an empty list
[]
.