-
Notifications
You must be signed in to change notification settings - Fork 0
DemoGraphBackgroundColor
Riaan Hanekom edited this page Jan 31, 2013
·
1 revision
An illustration of the background color functionality in a graph.
return Fluently.CreateDirectedGraph()
.Edges.Add(x =>
{
x.FromNodeWithName("a").ToNodeWithName("b");
x.FromNodeWithName("a").ToNodeWithName("c");
x.FromNodeWithName("c").ToNodeWithName("d");
x.FromNodeWithName("b").ToNodeWithName("d");
}
).WithBackgroundColor(Color.SlateBlue);
digraph "DirectedGraph" {
graph [bgcolor="#6a5acd"];
"a";
"b";
"c";
"d";
"a" -> "b";
"a" -> "c";
"c" -> "d";
"b" -> "d";
}