This commit is contained in:
jungin.rhee
2023-08-21 11:52:05 +00:00
parent aa9f04b7d4
commit bba6cd9979
25 changed files with 32 additions and 307 deletions

View File

@@ -23,9 +23,9 @@ mod test_graph {
}
let mut graph1 = SubGraph::new();
for n in 0..6 {
(0..6).for_each(|n| {
assert!(graph1.add_node(nodes[n].clone()));
}
});
assert!(graph1.detect_cycle());
assert!(!graph1.add_node(nodes[0].clone()));