pub struct GraphBuilder { /* private fields */ }Implementations§
Source§impl GraphBuilder
impl GraphBuilder
pub fn new(n: u64, weighted: bool, directed: bool) -> Self
pub fn complete_graph(&mut self, parallel: bool) -> Graph
pub fn reset(&mut self, n: u64)
pub fn is_weighted(&self) -> bool
pub fn is_directed(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn number_of_nodes(&self) -> u64
pub fn upper_node_id_bound(&self) -> u64
pub fn add_node(&mut self) -> u64
pub unsafe fn add_half_edge_unchecked( &mut self, u: u64, v: u64, ew: Option<f64>, )
pub fn add_half_edge(&mut self, u: u64, v: u64, ew: Option<f64>) -> Result<()>
pub unsafe fn add_half_out_edge_unchecked( &mut self, u: u64, v: u64, ew: Option<f64>, )
pub fn add_half_out_edge( &mut self, u: u64, v: u64, ew: Option<f64>, ) -> Result<()>
pub unsafe fn add_half_in_edge_unchecked( &mut self, u: u64, v: u64, ew: Option<f64>, )
pub fn add_half_in_edge( &mut self, u: u64, v: u64, ew: Option<f64>, ) -> Result<()>
pub unsafe fn set_weight_unchecked(&mut self, u: u64, v: u64, ew: Option<f64>)
pub fn set_weight(&mut self, u: u64, v: u64, ew: Option<f64>) -> Result<()>
pub unsafe fn set_out_weight_unchecked( &mut self, u: u64, v: u64, ew: Option<f64>, )
pub fn set_out_weight(&mut self, u: u64, v: u64, ew: Option<f64>) -> Result<()>
pub unsafe fn set_in_weight_unchecked( &mut self, u: u64, v: u64, ew: Option<f64>, )
pub fn set_in_weight(&mut self, u: u64, v: u64, ew: Option<f64>) -> Result<()>
pub unsafe fn increase_weight_unchecked( &mut self, u: u64, v: u64, ew: Option<f64>, )
pub fn increase_weight(&mut self, u: u64, v: u64, ew: Option<f64>) -> Result<()>
pub unsafe fn increase_out_weight_unchecked( &mut self, u: u64, v: u64, ew: Option<f64>, )
pub fn increase_out_weight( &mut self, u: u64, v: u64, ew: Option<f64>, ) -> Result<()>
pub unsafe fn increase_in_weight_unchecked( &mut self, u: u64, v: u64, ew: Option<f64>, )
pub fn increase_in_weight( &mut self, u: u64, v: u64, ew: Option<f64>, ) -> Result<()>
Trait Implementations§
impl Send for GraphBuilder
Auto Trait Implementations§
impl Freeze for GraphBuilder
impl RefUnwindSafe 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