Graphviz Example: family tree
digraph family_tree {
// Defining relationships
grandparents -> { parent1 parent2 parent3 };
parent1 -> { child1 child2 };
parent2 -> { child3 child4 };
parent3 -> { child5 };
// Defining individual nodes
grandparents [shape=ellipse, style=filled, color=lightblue, label="Grandparents"];
parent1 [shape=box, style=filled, color=lightgreen, label="Parent 1"];
parent2 [shape=box, style=filled, color=lightgreen, label="Parent 2"];
parent3 [shape=box, style=filled, color=lightgreen, label="Parent 3"];
child1 [shape=ellipse, label="Child 1"];
child2 [shape=ellipse, label="Child 2"];
child3 [shape=ellipse, label="Child 3"];
child4 [shape=ellipse, label="Child 4"];
child5 [shape=ellipse, label="Child 5"];
// Customizing graph layout
edge [color=gray];
rankdir=TB;
}