pub struct BipartiteGraph {
pub graph: Graph,
pub types: Vec<bool>,
}Expand description
Result of bipartite_game_gnp / bipartite_game_gnm: the
graph together with the boolean type vector that names every vertex
as bottom (false) or top (true).
Fields§
§graph: GraphGraph on n1 + n2 vertices.
types: Vec<bool>Per-vertex partition label. types[v] == false for
v ∈ 0..n1 (bottom), types[v] == true for v ∈ n1..n1+n2
(top).
Trait Implementations§
Source§impl Clone for BipartiteGraph
impl Clone for BipartiteGraph
Source§fn clone(&self) -> BipartiteGraph
fn clone(&self) -> BipartiteGraph
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 BipartiteGraph
impl !RefUnwindSafe for BipartiteGraph
impl Send for BipartiteGraph
impl !Sync for BipartiteGraph
impl Unpin for BipartiteGraph
impl UnsafeUnpin for BipartiteGraph
impl UnwindSafe for BipartiteGraph
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