-
Notifications
You must be signed in to change notification settings - Fork 0
DemoEdgeClipping
Riaan Hanekom edited this page Jan 31, 2013
·
1 revision
A demo of how disabling of the edge head and tail clipping affects the rendered graph.
return Fluently.CreateDirectedGraph()
.TheDefaults.ForEdges.Are(x =>
{
x.DoNotClipTail();
x.DoNotClipHead();
}
)
.Edges.Add(edges =>
{
edges.FromNodeWithName("a").ToNodeWithName("b");
edges.FromNodeWithName("a").ToNodeWithName("c");
edges.FromNodeWithName("b").ToNodeWithName("c");
edges.FromNodeWithName("c").ToNodeWithName("d");
edges.FromNodeWithName("b").ToNodeWithName("e");
edges.FromNodeWithName("e").ToNodeWithName("f");
edges.FromNodeWithName("e").ToNodeWithName("g");
}
)
.WithMinimumNodeSeperation(2);
digraph "DirectedGraph" {
graph [nodesep=2];
edge [tailclip="false", headclip="false"];
"a";
"b";
"c";
"d";
"e";
"f";
"g";
"a" -> "b";
"a" -> "c";
"b" -> "c";
"c" -> "d";
"b" -> "e";
"e" -> "f";
"e" -> "g";
}