Struct rgraph::Graph [] [src]

pub struct Graph { /* fields omitted */ }

The graph class itself. It holds the static information about the tasks (Nodes) and how they depend on each other by waiting on resources (Assets)

Methods

impl Graph
[src]

[src]

[src]

[src]

[src]

[src]

[src]

Binds two nodes. An asset satisfied by a task, will be the input for another task under a different asset name. One output asset can be used in one or more inputs. If the input is already bound, the link will be overwritten

[src]

For a given asset name, identifies which node generates the it

[src]

Trait Implementations

impl<'a> Labeller<'a, &'a str, (&'a str, &'a str, &'a str, &'a str)> for Graph
[src]

[src]

Must return a DOT compatible identifier naming the graph.

[src]

Maps n to a unique identifier with respect to self. The implementer is responsible for ensuring that the returned name is a valid DOT identifier. Read more

[src]

Maps e to a label that will be used in the rendered output. The label need not be unique, and may be the empty string; the default is in fact the empty string. Read more

[src]

Maps n to one of the [graphviz shape names][1]. If None is returned, no shape attribute is specified. Read more

[src]

Maps n to a label that will be used in the rendered output. The label need not be unique, and may be the empty string; the default is just the output from node_id. Read more

[src]

Maps n to a style that will be used in the rendered output.

[src]

Maps e to arrow style that will be used on the end of an edge. Defaults to normal. Read more

[src]

Maps e to arrow style that will be used on the end of an edge. Defaults to no arrow style. Read more

[src]

Maps e to a style that will be used in the rendered output.

impl<'a> GraphWalk<'a, &'a str, (&'a str, &'a str, &'a str, &'a str)> for Graph
[src]

[src]

Returns all the nodes in this graph.

[src]

Returns all of the edges in this graph.

[src]

The source node for edge.

[src]

The target node for edge.

impl Default for Graph
[src]

[src]

Returns the "default value" for a type. Read more