pub struct PlanarSeparator { /* private fields */ }Expand description
Planar separator solver over an undirected graph.
Implementations§
Source§impl PlanarSeparator
impl PlanarSeparator
Sourcepub fn add_edge(&mut self, u: usize, v: usize) -> GraphalgResult<()>
pub fn add_edge(&mut self, u: usize, v: usize) -> GraphalgResult<()>
Add an undirected edge (u, v). Self-loops are ignored; parallel edges
are de-duplicated.
Sourcepub fn from_adjacency_list(g: &AdjacencyList) -> GraphalgResult<Self>
pub fn from_adjacency_list(g: &AdjacencyList) -> GraphalgResult<Self>
Build a planar separator solver from an AdjacencyList, symmetrising
the edges (the graph is treated as undirected).
Sourcepub fn separate(&self) -> GraphalgResult<SeparatorResult>
pub fn separate(&self) -> GraphalgResult<SeparatorResult>
Compute a balanced vertex separator.
Trait Implementations§
Source§impl Clone for PlanarSeparator
impl Clone for PlanarSeparator
Source§fn clone(&self) -> PlanarSeparator
fn clone(&self) -> PlanarSeparator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlanarSeparator
impl RefUnwindSafe for PlanarSeparator
impl Send for PlanarSeparator
impl Sync for PlanarSeparator
impl Unpin for PlanarSeparator
impl UnsafeUnpin for PlanarSeparator
impl UnwindSafe for PlanarSeparator
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