-
Notifications
You must be signed in to change notification settings - Fork 0
DemoSimpleDirectedGraph
Riaan Hanekom edited this page Jan 31, 2013
·
1 revision
An illustration of a simple directed graph.
return Fluently.CreateDirectedGraph()
.Edges.Add(x =>
{
x.FromNodeWithName("A").ToNodeWithName("B");
x.FromNodeWithName("A").ToNodeWithName("C");
x.FromNodeWithName("B").ToNodeWithName("C");
x.FromNodeWithName("B").ToNodeWithName("D");
}
);
digraph "DirectedGraph" {
"A";
"B";
"C";
"D";
"A" -> "B";
"A" -> "C";
"B" -> "C";
"B" -> "D";
}