pub struct GraphBuilder { /* private fields */ }Expand description
Builder pattern for constructing graphs.
Implementations§
Source§impl GraphBuilder
impl GraphBuilder
Sourcepub fn add_weighted_edge(self, from: NodeId, to: NodeId, weight: f64) -> Self
pub fn add_weighted_edge(self, from: NodeId, to: NodeId, weight: f64) -> Self
Adds a weighted edge to the builder.
Trait Implementations§
Source§impl Default for GraphBuilder
impl Default for GraphBuilder
Source§fn default() -> GraphBuilder
fn default() -> GraphBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphBuilder
impl RefUnwindSafe for GraphBuilder
impl Send for GraphBuilder
impl Sync for GraphBuilder
impl Unpin for GraphBuilder
impl UnwindSafe for GraphBuilder
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