diff --git a/odo/core.py b/odo/core.py index fdae78d6..5c01d3ed 100644 --- a/odo/core.py +++ b/odo/core.py @@ -169,10 +169,10 @@ def path(graph, source, target, excluded_edges=None, ooc_types=ooc_types): if issubclass(n, oocs)]) with without_edges(graph, excluded_edges) as g: pth = nx.shortest_path(g, source=source, target=target, weight='cost') - edge = graph.edge def path_part(src, tgt): - node = edge[src][tgt] + #node = edge[src][tgt] + node = graph[src][tgt] return PathPart(src, tgt, node['func'], node['cost']) return map(path_part, pth, pth[1:]) @@ -189,7 +189,7 @@ def without_edges(g, edges): edges = edges or [] held = dict() for a, b in edges: - held[(a, b)] = g.edge[a][b] + held[(a, b)] = g[a][b] g.remove_edge(a, b) try: