Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rust/bambam-omf/src/graph/component_algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ pub fn island_detection_algorithm(
queue.push_back((start_edge.edge_list_id, start_edge.edge_id));
let mut max_distance_reached = uom_length::new::<uom::si::length::meter>(0 as f64);
let mut component = Vec::<(EdgeListId, EdgeId)>::new();
let start_midpoint = compute_midpoint(start_edge, vertices);

// Loop through the queue (explore the component)
loop {
Expand All @@ -88,7 +89,7 @@ pub fn island_detection_algorithm(

let current_distance = is_component_island_sequential(
&current_edge,
compute_midpoint(start_edge, vertices),
start_midpoint,
&mut visited,
&mut queue,
vertices,
Expand Down
Loading