Skip to content

Commit d22a673

Browse files
committed
Bugfix: duplicate edges
1 parent e7a46d4 commit d22a673

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

utils/functions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def create_graph_from_adj(adj: list, coord: pd.DataFrame):
1515
for j in range(n):
1616
if adj[i, j] > 0:
1717
graph.add_edge(i, j, color="g", weight=adj[i, j])
18-
graph.add_edge(j, i, color="g", weight=adj[j, i])
1918
edges = graph.edges()
2019
pos = {}
2120
# coord has id as index with lat, lon columns

0 commit comments

Comments
 (0)