1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use crate::label_bipartite_graph_with_bfs::label_bipartite; pub fn is_bipartite(g: &[Vec<usize>]) -> bool { label_bipartite(g).is_some() } #[cfg(test)] mod tests { #[test] fn test() { // TODO: } }