Directed

Undocumented in source.

Members

Functions

ark
string ark()
Undocumented in source. Be warned that the author may not have intended to support it.
typename
string typename()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Graph

node
auto ref node(Node d)
Undocumented in source. Be warned that the author may not have intended to support it.
node
auto ref node(T t)
Undocumented in source. Be warned that the author may not have intended to support it.
node
auto ref node(T t, string[string] option)
Undocumented in source. Be warned that the author may not have intended to support it.
edge
auto edge(S src, D dst)
Undocumented in source. Be warned that the author may not have intended to support it.
edge
auto edge(S src, D dst, string[string] option)
Undocumented in source. Be warned that the author may not have intended to support it.
typename
string typename()
Undocumented in source.
ark
string ark()
Undocumented in source.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
save
void save(string path)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

import std.stdio;
import std.format;
import dgraphviz;

struct A {
    auto toString() {
        return "A\n\"struct\"";
    }
}

auto g = new Directed;
A a;
with (g) {
    node(a, ["shape": "box", "color": "#ff0000"]);
    edge(a, true);
    edge(a, 1, ["style": "dashed", "label": "a-to-1"]);
    edge(true, "foo");
}
g.save("simple.dot");

Meta