spanning_tree_weight

Function spanning_tree_weight 

Source
pub fn spanning_tree_weight<T, S>(tree: &S) -> SparseResult<T>
where T: Float + Debug + Copy + 'static, S: SparseArray<T>,
Expand description

Compute the weight of a spanning tree

§Arguments

  • tree - The spanning tree as a sparse matrix

§Returns

Total weight of the spanning tree