VizDotGraph

Trait VizDotGraph 

Source
pub trait VizDotGraph<NodeWeight, EdgeWeight>: Graph<NodeWeight, EdgeWeight> {
    // Required method
    fn print(&self) -> String;
}
Expand description

The VizDotGraph trait allows a given Graph to be printed to the GraphViz format.

Required Methods§

Source

fn print(&self) -> String

Prints the given graph. This function returns a String.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<NodeWeight, EdgeWeight, IndexType, Direction> VizDotGraph<NodeWeight, EdgeWeight> for Graph<NodeWeight, EdgeWeight, Direction, IndexType>
where NodeWeight: Debug, EdgeWeight: Debug, IndexType: IndexType, Direction: EdgeType,

Print implementation for petgraph-type graphs.

Requires NodeWeight, EdgeWeight to posess the Debug trait.

Source§

fn print(&self) -> String

Use petgraph’s Dot struct to output the graph.

Implementors§