Graph
Example for a directed Graph
![](/images/wiki/diagrams/Diagrams_90a5eaacc47a87c8ede763e4dfcf5323.png)
Graphs versus Object orientation
Classes and Relations
The following UML diagram shows the description of an organizational hierarchy.
![](/images/wiki/diagrams/Diagrams_700c8430d32833dadb2ba550496d617f.png)
Person "leader 1" -> "n employee" Person
Hierarchy as a Tree
The following example organizational hierachy is a Tree which is a special case of a directed graph.
![](/images/wiki/diagrams/Diagrams_8a738a3b69cba2b547afcbda811bce42.png)