Skip to content

Commit

Permalink
Fixed unnecessary moving of value
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoulLuque committed Apr 7, 2024
1 parent cdbf13d commit f6d6eb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/algorithms.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub mod construct_clique_graph;
pub mod fill_bags_along_path;
pub mod fill_bags_along_paths;
pub mod find_maximum_cliques;
pub mod find_path_in_tree;
pub mod find_width_of_tree_decomposition;
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use std::collections::HashSet;

/// Given a tree graph with bags (HashSets) as Vertices, checks all 2-combinations of bags for non-empty-intersection
/// and inserts the intersecting nodes in all bags that are along the (unique) path of the two bags in the tree.
pub fn fill_bags_along_path<E>(
mut graph: Graph<HashSet<NodeIndex>, E, petgraph::prelude::Undirected>,
pub fn fill_bags_along_paths<E>(
graph: &mut Graph<HashSet<NodeIndex>, E, petgraph::prelude::Undirected>,
) {
let mut vec_of_bags_that_need_to_be_connected: Vec<(NodeIndex, NodeIndex, Vec<NodeIndex>)> =
Vec::new();
Expand Down

0 comments on commit f6d6eb0

Please sign in to comment.