()
| 128 | |
| 129 | #[test] |
| 130 | fn cycle() { |
| 131 | let graph = create_graph(TINY_G); |
| 132 | let c = Cycle::new(graph.as_ref()); |
| 133 | assert!(c.has_cycle()); |
| 134 | assert!(c.cycle().unwrap().eq(vec![3, 4, 5, 3].iter())); |
| 135 | } |
| 136 | |
| 137 | #[test] |
| 138 | fn two_color() { |
nothing calls this directly
no test coverage detected