[][src]Function petgraph_evcxr::draw_graph

pub fn draw_graph<G>(g: G) where
    G: NodeIndexable + IntoNodeReferences + IntoEdgeReferences,
    G: GraphProp,
    G::NodeWeight: Display,
    G::EdgeWeight: Display

Draw a petgraph graph

let mut g : Graph<&str, &str> = Graph::new();
let a = g.add_node("a");
let b = g.add_node("b");
g.add_edge(a, b, "a to b");
draw_graph(&g);