pub struct TreeEdge {
pub source: usize,
pub target: usize,
pub capacity: f64,
}Expand description
Represents an edge in the Gomory-Hu tree.
Each edge connects two nodes from the original graph (or supernodes formed during construction) and stores a capacity, which corresponds to the min-cut value between those two nodes (or sets of nodes) in the original graph.
Fields§
§source: usizeOne endpoint of the tree edge, representing a vertex from the original graph.
target: usizeThe other endpoint of the tree edge, representing a vertex from the original graph.
capacity: f64The capacity of this tree edge, equal to the min-cut value between source and target
(or the components they represented) in the step it was added.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TreeEdge
Auto Trait Implementations§
impl Freeze for TreeEdge
impl RefUnwindSafe for TreeEdge
impl Send for TreeEdge
impl Sync for TreeEdge
impl Unpin for TreeEdge
impl UnwindSafe for TreeEdge
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