• Home
  • Raw
  • Download

Lines Matching full:dot

1 //! Simple graphviz dot file format output.
9 /// `Dot` implements output to graphviz .dot format for a graph.
18 /// use petgraph::dot::{Dot, Config};
31 /// println!("{:?}", Dot::with_config(&graph, &[Config::EdgeNoLabel]));
50 pub struct Dot<'a, G> struct
64 impl<'a, G> Dot<'a, G> impl
68 /// Create a `Dot` formatting wrapper with default configuration.
74 /// Create a `Dot` formatting wrapper with custom configuration.
88 Dot { in with_attr_getters()
97 /// `Dot` configuration.
147 impl<'a, G> Dot<'a, G> impl
204 impl<'a, G> fmt::Display for Dot<'a, G> implementation
215 impl<'a, G> fmt::Debug for Dot<'a, G> implementation
281 use super::{Config, Dot, Escaper};
307 let dot = format!("{:?}", Dot::with_config(&graph, &[Config::NodeIndexLabel])); in test_nodeindexlable_option() localVariable
308 …assert_eq!(dot, "digraph {\n 0 [ label = \"0\" ]\n 1 [ label = \"1\" ]\n 0 -> 1 [ label =… in test_nodeindexlable_option()
314 let dot = format!("{:?}", Dot::with_config(&graph, &[Config::EdgeIndexLabel])); in test_edgeindexlable_option() localVariable
315 …assert_eq!(dot, "digraph {\n 0 [ label = \"\\\"A\\\"\" ]\n 1 [ label = \"\\\"B\\\"\" ]\n … in test_edgeindexlable_option()
321 let dot = format!("{:?}", Dot::with_config(&graph, &[Config::EdgeNoLabel])); in test_edgenolable_option() localVariable
322 …assert_eq!(dot, "digraph {\n 0 [ label = \"\\\"A\\\"\" ]\n 1 [ label = \"\\\"B\\\"\" ]\n … in test_edgenolable_option()
328 let dot = format!("{:?}", Dot::with_config(&graph, &[Config::NodeNoLabel])); in test_nodenolable_option() localVariable
330 dot, in test_nodenolable_option()
338 let dot = format!( in test_with_attr_getters() localVariable
340 Dot::with_attr_getters( in test_with_attr_getters()
347 …assert_eq!(dot, "digraph {\n 0 [ label = \"a\"]\n 1 [ label = \"b\"]\n 0 -> 1 [ label = \… in test_with_attr_getters()