1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#![warn(warnings)]
#![doc = include_str!("../README.md")]
pub mod label;
mod arrow;
mod errors;
mod fill;
mod graph_walk;
mod id;
mod kind;
mod render;
mod side;
mod style;
pub use arrow::Arrow;
pub use errors::*;
pub use fill::Fill;
pub use graph_walk::GraphWalk;
pub use id::Id;
pub use kind::Kind;
pub use label::Labeller;
pub use render::{render, render_opts};
pub use side::Side;
pub use style::Style;
pub fn escape_html(s: &str) -> String {
s.replace('&', "&")
.replace('\"', """)
.replace('<', "<")
.replace('>', ">")
}
pub type Nodes<'a, N> = std::borrow::Cow<'a, [N]>;
pub type Edges<'a, E> = std::borrow::Cow<'a, [E]>;
pub type Subgraphs<'a, S> = std::borrow::Cow<'a, [S]>;
#[cfg(test)]
mod tests;