pub fn is_spanning_tree<T, S1, S2>( graph: &S1, tree: &S2, tol: T, ) -> SparseResult<bool>where T: Float + Debug + Copy + 'static, S1: SparseArray<T>, S2: SparseArray<T>,
Check if a tree is a valid spanning tree of a graph
graph
tree
tol
True if the tree is a valid spanning tree, false otherwise