pub struct WeightedBipartiteGraph {
pub graph: Graph,
pub types: Vec<bool>,
pub weights: Vec<f64>,
}Expand description
A bipartite graph with edge weights, the output of Graph::weighted_biadjacency.
Fields§
§graph: GraphThe graph.
types: Vec<bool>The type of each vertex, indexed by vertex id.
weights: Vec<f64>The weight of each edge, indexed by edge id.
Trait Implementations§
Source§impl Clone for WeightedBipartiteGraph
impl Clone for WeightedBipartiteGraph
Source§fn clone(&self) -> WeightedBipartiteGraph
fn clone(&self) -> WeightedBipartiteGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeightedBipartiteGraph
impl Debug for WeightedBipartiteGraph
Source§impl PartialEq for WeightedBipartiteGraph
impl PartialEq for WeightedBipartiteGraph
Source§fn eq(&self, other: &WeightedBipartiteGraph) -> bool
fn eq(&self, other: &WeightedBipartiteGraph) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WeightedBipartiteGraph
Auto Trait Implementations§
impl !Sync for WeightedBipartiteGraph
impl Freeze for WeightedBipartiteGraph
impl RefUnwindSafe for WeightedBipartiteGraph
impl Send for WeightedBipartiteGraph
impl Unpin for WeightedBipartiteGraph
impl UnsafeUnpin for WeightedBipartiteGraph
impl UnwindSafe for WeightedBipartiteGraph
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