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§
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>
Print implementation for petgraph-type graphs.
impl<NodeWeight, EdgeWeight, IndexType, Direction> VizDotGraph<NodeWeight, EdgeWeight> for Graph<NodeWeight, EdgeWeight, Direction, IndexType>
Print implementation for petgraph-type graphs.
Requires NodeWeight, EdgeWeight to posess the Debug trait.