Skip to content

Commit

Permalink
remove unecessary ::
Browse files Browse the repository at this point in the history
  • Loading branch information
milselarch committed May 6, 2024
1 parent a518a1f commit 2319b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fn is_graph_acyclic(graph: &DiGraph<u16, u64>) -> bool {

fn dfs_find_cycle(
node: &NodeIndex, path: &mut Vec<NodeIndex>,
explored: &mut HashSet::<NodeIndex>, graph: &DiGraph<u16, u64>
explored: &mut HashSet<NodeIndex>, graph: &DiGraph<u16, u64>
) -> bool {
// use DFS to see if a cycle can be created from paths starting from node
explored.insert(*node);
Expand Down

0 comments on commit 2319b8a

Please sign in to comment.