4
4
//! use with [Graphviz](https://www.graphviz.org/) by walking a labeled
5
5
//! graph. (Graphviz can then automatically lay out the nodes and edges
6
6
//! of the graph, and also optionally render the graph as an image or
7
- //! other [output formats](
8
- //! https://www.graphviz.org/content/output-formats), such as SVG.)
7
+ //! other [output formats](https://www.graphviz.org/docs/outputs), such as SVG.)
9
8
//!
10
9
//! Rather than impose some particular graph data structure on clients,
11
10
//! this library exposes two traits that clients can implement on their
12
11
//! own structs before handing them over to the rendering function.
13
12
//!
14
13
//! Note: This library does not yet provide access to the full
15
- //! expressiveness of the [DOT language](
16
- //! https://www.graphviz.org/doc/info/lang.html). For example, there are
17
- //! many [attributes](https://www.graphviz.org/content/attrs) related to
18
- //! providing layout hints (e.g., left-to-right versus top-down, which
14
+ //! expressiveness of the [DOT language](https://www.graphviz.org/doc/info/lang.html).
15
+ //! For example, there are many [attributes](https://www.graphviz.org/doc/info/attrs.html)
16
+ //! related to providing layout hints (e.g., left-to-right versus top-down, which
19
17
//! algorithm to use, etc). The current intention of this library is to
20
18
//! emit a human-readable .dot file with very regular structure suitable
21
19
//! for easy post-processing.
@@ -292,7 +290,7 @@ pub enum LabelText<'a> {
292
290
LabelStr ( Cow < ' a , str > ) ,
293
291
294
292
/// This kind of label uses the graphviz label escString type:
295
- /// <https://www.graphviz.org/content/attrs#kescString >
293
+ /// <https://www.graphviz.org/docs/attr-types/escString >
296
294
///
297
295
/// Occurrences of backslashes (`\`) are not escaped; instead they
298
296
/// are interpreted as initiating an escString escape sequence.
@@ -307,12 +305,12 @@ pub enum LabelText<'a> {
307
305
/// printed exactly as given, but between `<` and `>`. **No
308
306
/// escaping is performed.**
309
307
///
310
- /// [html]: https://www.graphviz.org/content/node- shapes#html
308
+ /// [html]: https://www.graphviz.org/doc/info/ shapes.html #html
311
309
HtmlStr ( Cow < ' a , str > ) ,
312
310
}
313
311
314
312
/// The style for a node or edge.
315
- /// See <https://www.graphviz.org/doc/info/attrs.html#k: style> for descriptions.
313
+ /// See <https://www.graphviz.org/docs/attr-types/ style/ > for descriptions.
316
314
/// Note that some of these are not valid for edges.
317
315
#[ derive( Copy , Clone , PartialEq , Eq , Debug ) ]
318
316
pub enum Style {
@@ -439,7 +437,7 @@ pub trait Labeller<'a> {
439
437
/// Maps `n` to one of the [graphviz `shape` names][1]. If `None`
440
438
/// is returned, no `shape` attribute is specified.
441
439
///
442
- /// [1]: https://www.graphviz.org/content/node- shapes
440
+ /// [1]: https://www.graphviz.org/doc/info/ shapes.html
443
441
fn node_shape ( & ' a self , _node : & Self :: Node ) -> Option < LabelText < ' a > > {
444
442
None
445
443
}
0 commit comments