update graphviz links
add subdomain
This commit is contained in:
parent
ee6eaabdd4
commit
2c604f63fc
1 changed files with 8 additions and 10 deletions
|
@ -4,18 +4,16 @@
|
||||||
//! use with [Graphviz](https://www.graphviz.org/) by walking a labeled
|
//! use with [Graphviz](https://www.graphviz.org/) by walking a labeled
|
||||||
//! graph. (Graphviz can then automatically lay out the nodes and edges
|
//! graph. (Graphviz can then automatically lay out the nodes and edges
|
||||||
//! of the graph, and also optionally render the graph as an image or
|
//! of the graph, and also optionally render the graph as an image or
|
||||||
//! other [output formats](
|
//! other [output formats](https://www.graphviz.org/docs/outputs), such as SVG.)
|
||||||
//! https://www.graphviz.org/content/output-formats), such as SVG.)
|
|
||||||
//!
|
//!
|
||||||
//! Rather than impose some particular graph data structure on clients,
|
//! Rather than impose some particular graph data structure on clients,
|
||||||
//! this library exposes two traits that clients can implement on their
|
//! this library exposes two traits that clients can implement on their
|
||||||
//! own structs before handing them over to the rendering function.
|
//! own structs before handing them over to the rendering function.
|
||||||
//!
|
//!
|
||||||
//! Note: This library does not yet provide access to the full
|
//! Note: This library does not yet provide access to the full
|
||||||
//! expressiveness of the [DOT language](
|
//! expressiveness of the [DOT language](https://www.graphviz.org/doc/info/lang.html).
|
||||||
//! https://www.graphviz.org/doc/info/lang.html). For example, there are
|
//! For example, there are many [attributes](https://www.graphviz.org/doc/info/attrs.html)
|
||||||
//! many [attributes](https://www.graphviz.org/content/attrs) related to
|
//! related to providing layout hints (e.g., left-to-right versus top-down, which
|
||||||
//! providing layout hints (e.g., left-to-right versus top-down, which
|
|
||||||
//! algorithm to use, etc). The current intention of this library is to
|
//! algorithm to use, etc). The current intention of this library is to
|
||||||
//! emit a human-readable .dot file with very regular structure suitable
|
//! emit a human-readable .dot file with very regular structure suitable
|
||||||
//! for easy post-processing.
|
//! for easy post-processing.
|
||||||
|
@ -292,7 +290,7 @@ pub enum LabelText<'a> {
|
||||||
LabelStr(Cow<'a, str>),
|
LabelStr(Cow<'a, str>),
|
||||||
|
|
||||||
/// This kind of label uses the graphviz label escString type:
|
/// This kind of label uses the graphviz label escString type:
|
||||||
/// <https://www.graphviz.org/content/attrs#kescString>
|
/// <https://www.graphviz.org/docs/attr-types/escString>
|
||||||
///
|
///
|
||||||
/// Occurrences of backslashes (`\`) are not escaped; instead they
|
/// Occurrences of backslashes (`\`) are not escaped; instead they
|
||||||
/// are interpreted as initiating an escString escape sequence.
|
/// are interpreted as initiating an escString escape sequence.
|
||||||
|
@ -307,12 +305,12 @@ pub enum LabelText<'a> {
|
||||||
/// printed exactly as given, but between `<` and `>`. **No
|
/// printed exactly as given, but between `<` and `>`. **No
|
||||||
/// escaping is performed.**
|
/// escaping is performed.**
|
||||||
///
|
///
|
||||||
/// [html]: https://www.graphviz.org/content/node-shapes#html
|
/// [html]: https://www.graphviz.org/doc/info/shapes.html#html
|
||||||
HtmlStr(Cow<'a, str>),
|
HtmlStr(Cow<'a, str>),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The style for a node or edge.
|
/// The style for a node or edge.
|
||||||
/// See <https://www.graphviz.org/doc/info/attrs.html#k:style> for descriptions.
|
/// See <https://www.graphviz.org/docs/attr-types/style/> for descriptions.
|
||||||
/// Note that some of these are not valid for edges.
|
/// Note that some of these are not valid for edges.
|
||||||
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
||||||
pub enum Style {
|
pub enum Style {
|
||||||
|
@ -439,7 +437,7 @@ pub trait Labeller<'a> {
|
||||||
/// Maps `n` to one of the [graphviz `shape` names][1]. If `None`
|
/// Maps `n` to one of the [graphviz `shape` names][1]. If `None`
|
||||||
/// is returned, no `shape` attribute is specified.
|
/// is returned, no `shape` attribute is specified.
|
||||||
///
|
///
|
||||||
/// [1]: https://www.graphviz.org/content/node-shapes
|
/// [1]: https://www.graphviz.org/doc/info/shapes.html
|
||||||
fn node_shape(&'a self, _node: &Self::Node) -> Option<LabelText<'a>> {
|
fn node_shape(&'a self, _node: &Self::Node) -> Option<LabelText<'a>> {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue