Skip to content

Commit

Permalink
no edges for nodes at 0
Browse files Browse the repository at this point in the history
  • Loading branch information
uhuruhashimoto committed Mar 6, 2023
1 parent f0750f2 commit 193ca7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ async fn get_node_edges(
.graph
.get_edges()
.iter()
.filter(|e| {
let u = graph.graph.get_node(e.u);
let v = graph.graph.get_node(e.v);
u.longitude != 0.0 && u.latitude != 0.0 && v.latitude != 0.0 && v.longitude != 0.0
})
.map(|e| {
let u = graph.graph.get_node(e.u);
let v = graph.graph.get_node(e.v);
Expand Down

0 comments on commit 193ca7b

Please sign in to comment.