Difference between revisions of "Graph"

From BITPlan Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
</graphviz>
 
</graphviz>
 
== Graphs versus Object orientation ==
 
== Graphs versus Object orientation ==
 +
=== Classes and Relations ===
 +
The following UML diagram shows the description of an organizational hierarchy.
 
<uml>
 
<uml>
 
hide circle
 
hide circle
Line 12: Line 14:
 
}
 
}
 
Person "leader 1" -> "n employee" Person
 
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.
 
</uml>
 
</uml>
 
<graphviz>
 
<graphviz>

Revision as of 10:06, 1 February 2019

Example for a directed Graph

Graphs versus Object orientation

Classes and Relations

The following UML diagram shows the description of an organizational hierarchy.

Links