pub struct GomoryHuTree {
pub tree: Graph,
pub flows: Vec<f64>,
}Expand description
Output of gomory_hu_tree — a weighted undirected tree on the
same vertex set as the input graph, plus one flow value per tree
edge.
The flow vector is indexed by tree edge id in the order they were
added (tree.edge_endpoints(eid) gives the corresponding endpoints).
flows.len() == tree.ecount() == max(vcount - 1, 0).
Fields§
§tree: GraphUndirected tree with the same vertex count as the input graph
and exactly max(vcount - 1, 0) edges.
flows: Vec<f64>Tree-edge weights, in the same order as the edges of tree.
Each entry is the value of the s-t min cut between the two
endpoints of that tree edge in the original graph (and, by
the Gomory-Hu property, the minimum cut value between every
pair separated by that edge in the tree).
Trait Implementations§
Source§impl Clone for GomoryHuTree
impl Clone for GomoryHuTree
Source§fn clone(&self) -> GomoryHuTree
fn clone(&self) -> GomoryHuTree
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for GomoryHuTree
impl !RefUnwindSafe for GomoryHuTree
impl Send for GomoryHuTree
impl !Sync for GomoryHuTree
impl Unpin for GomoryHuTree
impl UnsafeUnpin for GomoryHuTree
impl UnwindSafe for GomoryHuTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more