pub struct CsrMatrixBuilder { /* private fields */ }Expand description
Builder for CSR matrices.
Implementations§
Source§impl CsrMatrixBuilder
impl CsrMatrixBuilder
Sourcepub fn with_edges(self, edges: &[(u32, u32)]) -> Self
pub fn with_edges(self, edges: &[(u32, u32)]) -> Self
Add edges from slice.
Sourcepub fn with_weighted_edges(self, edges: &[(u32, u32, f64)]) -> Self
pub fn with_weighted_edges(self, edges: &[(u32, u32, f64)]) -> Self
Add weighted edges from slice.
Sourcepub fn add_weighted_edge(&mut self, src: u32, dst: u32, weight: f64)
pub fn add_weighted_edge(&mut self, src: u32, dst: u32, weight: f64)
Add a weighted edge.
Trait Implementations§
Source§impl Debug for CsrMatrixBuilder
impl Debug for CsrMatrixBuilder
Source§impl Default for CsrMatrixBuilder
impl Default for CsrMatrixBuilder
Source§fn default() -> CsrMatrixBuilder
fn default() -> CsrMatrixBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CsrMatrixBuilder
impl RefUnwindSafe for CsrMatrixBuilder
impl Send for CsrMatrixBuilder
impl Sync for CsrMatrixBuilder
impl Unpin for CsrMatrixBuilder
impl UnwindSafe for CsrMatrixBuilder
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