pub fn to_dot<N, E, Ty>(g: &Graph<N, E, Ty>) -> Stringwhere N: Display, E: Display, Ty: EdgeType + 'static,
Generate a DOT format representation of the graph for visualization with Graphviz.