pub struct BipartiteProjection {
pub graph: Graph,
pub vertex_map: Vec<VertexId>,
pub multiplicity: Vec<u32>,
}Expand description
Result of a bipartite projection.
Fields§
§graph: GraphThe projected graph (undirected).
vertex_map: Vec<VertexId>Mapping from projection vertex IDs to original vertex IDs.
vertex_map[proj_v] is the original vertex ID.
multiplicity: Vec<u32>Edge multiplicities: multiplicity[e] is the number of common
neighbors that caused projection edge e to exist.
Trait Implementations§
Source§impl Clone for BipartiteProjection
impl Clone for BipartiteProjection
Source§fn clone(&self) -> BipartiteProjection
fn clone(&self) -> BipartiteProjection
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 BipartiteProjection
impl !RefUnwindSafe for BipartiteProjection
impl Send for BipartiteProjection
impl !Sync for BipartiteProjection
impl Unpin for BipartiteProjection
impl UnsafeUnpin for BipartiteProjection
impl UnwindSafe for BipartiteProjection
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