[−][src]Struct fp_wavelet_trees::graph_wt::WTGraphBuilder
This graph builder is used, because a once created Tree can't be modified effectively.
Methods
impl WTGraphBuilder
[src]
pub fn add_edge<'a>(
&'a mut self,
start_node: u64,
end_node: u64
) -> Result<&'a mut WTGraphBuilder, &'static str>
[src]
&'a mut self,
start_node: u64,
end_node: u64
) -> Result<&'a mut WTGraphBuilder, &'static str>
Adds an edge from start_node to end_node
Arguments
start_node
id of the first nodeend_node
id to the second node
Example
wt_graph_builder.add_edge(0, 1);
pub fn to_graph(&self) -> WaveletTreeGraph
[src]
Resolve the Builder to WaveletTreeGraph
Example
let mut wt_graph_builder = WTGraphBuilder::with_capacities(6); // Add edges.. wt_graph_builder.to_graph();
pub fn with_capacities(size: usize) -> Self
[src]
Auto Trait Implementations
impl Send for WTGraphBuilder
impl Unpin for WTGraphBuilder
impl Sync for WTGraphBuilder
impl UnwindSafe for WTGraphBuilder
impl RefUnwindSafe for WTGraphBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,