pub struct GraphLayout { /* private fields */ }Expand description
Graph layout engine
Implementations§
Source§impl GraphLayout
impl GraphLayout
pub fn new() -> Self
pub fn force_directed() -> Self
pub fn circular() -> Self
pub fn with_algorithm(self, algorithm: GraphLayoutAlgorithm) -> Self
pub fn with_config(self, config: GraphLayoutConfig) -> Self
pub fn with_repulsion(self, repulsion: f64) -> Self
pub fn with_attraction(self, attraction: f64) -> Self
pub fn with_iterations(self, iterations: usize) -> Self
pub fn visualize(&self, graph: &Graph) -> Result<String>
pub fn layout_graph(&self, graph: &Graph) -> Result<Layout>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphLayout
impl RefUnwindSafe for GraphLayout
impl Send for GraphLayout
impl Sync for GraphLayout
impl Unpin for GraphLayout
impl UnwindSafe for GraphLayout
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