:dep petgraph = "*"
:dep petgraph-evcxr = "*"
extern crate petgraph;
use petgraph::graph::Graph;
use petgraph::dot::Dot;
use petgraph_evcxr::{draw_graph, draw_dot};
let mut g : Graph<&str, &str> = Graph::new();
let good = g.add_node("the good");
let bad = g.add_node("the bad");
let ugly = g.add_node("the ugly");
g.add_edge(good, bad, "don't move");
g.add_edge(bad, good, "don't move");
g.add_edge(bad, ugly, "don't move");
g.add_edge(ugly, bad, "don't move");
g.add_edge(ugly, good, "don't move");
g.add_edge(good, ugly, "don't move");
draw_graph(&g);