This commit is contained in:
DingZQ
2024-12-08 18:11:04 +08:00
parent 73598b7b38
commit f8655fe8b6

View File

@@ -833,7 +833,7 @@ def get_node_coord(name: str, node_id: str) -> dict[str, float]:
# DingZQ, 2024-12-08, get all node coord
# id, x, y
def get_network_coords(name: str) -> dict[str, dict[str, float]]:
node_ids = api.get_all_node_ids(name)
node_ids = api.get_nodes(name)
result = {}
for node_id in node_ids:
result[node_id] = api.get_node_coord(name, node_id)