pub struct Inspector;Expand description
Graph inspector for analyzing and optimizing graphs
Implementations§
Source§impl Inspector
impl Inspector
Sourcepub fn analyze(graph: &Graph) -> GraphAnalysis
pub fn analyze(graph: &Graph) -> GraphAnalysis
Analyze a graph and return statistics
Sourcepub fn suggest_optimizations(graph: &Graph) -> Vec<Optimization>
pub fn suggest_optimizations(graph: &Graph) -> Vec<Optimization>
Suggest optimizations for the graph
Sourcepub fn visualize(graph: &Graph) -> Result<String>
pub fn visualize(graph: &Graph) -> Result<String>
Visualize graph structure as a simple text representation
Sourcepub fn to_mermaid(graph: &Graph) -> Result<String>
pub fn to_mermaid(graph: &Graph) -> Result<String>
Generate a Mermaid diagram representation of the graph
Auto Trait Implementations§
impl Freeze for Inspector
impl RefUnwindSafe for Inspector
impl Send for Inspector
impl Sync for Inspector
impl Unpin for Inspector
impl UnwindSafe for Inspector
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