Preview

Tree and graphs

Good Essays
Open Document
Open Document
815 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Tree and graphs
Trees and Graphs
Pat Hanrahan

Tree Drawing

Page 1

Why Trees?
Hierarchies
File systems and web sites
Organization charts
Categorical classifications
Similiarity and clustering
Branching processes
Genealogy and lineages
Phylogenetic trees
Decision processes
Indices or search trees
Decision trees
Tournaments

Two Major Visual Representations
Connection: Node / Link Diagrams

Containment / Enclosure
F6
G6
H6
J36
U8
B10

C30
L7 M7

V12
O4 P4 Q4 R4 S4 T4
W8

Page 2

[Furbringer]

C. Elegans Cell Lineage

[Sulston]

Page 3

Page 4

Page 5

Page 6

Classic Tree Drawing
Preorder or inorder traversal

Depth-InOrder Traversal
0
1
2
3
4
5
6
7

0 1 2 3 4 5 6 7 8 9 10 11 13 14 15

Similarly for pre-order, postorder
Note: width = n-1

Page 7

Aesthetic Criteria
1.

Nodes at the same levels should be aligned

2.

Maintain the relative ordering of left and right subtrees

3.

Parent should be centered over the children

4.

A tree and its mirror image should be drawn as reflections of each other

5.

A subtree should be drawn the same way regardless of where it occurs in the tree

Rheingold-Tilford Algorithm

E. Rheingold, J. Tilford, Tidier drawing of trees, IEEE Trans.
Software Engineering, SE-7(2), pp. 223-228. 1981

Page 8

Rheingold-Tilford Algorithm

Left contour
Left threads
Right contour
Right threads

E. Rheingold, J. Tilford, Tidier drawing of trees, IEEE Trans.
Software Engineering, SE-7(2), pp. 223-228. 1981

Rheingold-Tilford Algorithm

Separation = 2

E. Rheingold, J. Tilford, Tidier drawing of trees, IEEE Trans.
Software Engineering, SE-7(2), pp. 223-228. 1981

Page 9

Rheingold-Tilford Algorithm
Translate by (sep+1)/2

E. Rheingold, J. Tilford, Tidier drawing of trees, IEEE Trans.
Software Engineering, SE-7(2), pp. 223-228. 1981

Rheingold-Tilford Algorithm

T = min(h(TL), h(TR)

E. Rheingold, J. Tilford, Tidier drawing

You May Also Find These Documents Helpful

  • Good Essays

    Psy/315 Week 4

    • 631 Words
    • 3 Pages

    0, 1, 1, 3, 0, 0, 2, 5, 0, 1, 1, 2, 0, 1, 1…

    • 631 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Ornge

    • 21055 Words
    • 85 Pages

    5 6 7 10 10 11 12 14 15 16 17 19 20 20 22 25 25 26 26…

    • 21055 Words
    • 85 Pages
    Powerful Essays
  • Satisfactory Essays

    Dark Jerseys Group

    • 489 Words
    • 2 Pages

    NUMBER 2 3 4 5 6 7 8 9 10 11 12 13 14 NUMBER 2 3 4 5 6 7 8 9 10 11 12 13 14 NUMBER 2 3 4 5 6 7 8 9 10 11 12 13 14…

    • 489 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Kudler

    • 5465 Words
    • 22 Pages

    2 3 3 3 4 4 5 5 5 5 6 6 7 7 7 8 8 8 9 9 9 10 10 11 11 11 12 12 12 12 13 13 14 15 16 17 18 19 20 21…

    • 5465 Words
    • 22 Pages
    Powerful Essays
  • Good Essays

    2, 2, 0, 5, 1, 4, 1, 3, 0, 0, 1, 4, 4, 0, 1, 4, 3, 4, 2, 1, 0…

    • 1337 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    1 |2 |3 |4 |5 |6 |7 |8 |9 |10 |11 |12 |13 |14 |15 | | | | | | | | | | | | | | | | | |…

    • 973 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Maths Higher Tier Paper

    • 1948 Words
    • 8 Pages

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19…

    • 1948 Words
    • 8 Pages
    Satisfactory Essays
  • Good Essays

    Medical Terminology

    • 939 Words
    • 10 Pages

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25…

    • 939 Words
    • 10 Pages
    Good Essays
  • Good Essays

    Sociology is the study of society. It is a social science that involves the study of people, groups, and societies. This science explains the dynamics of society and how they and how they connect to our actions in everyday life. It studies the ways that social structures human attitudes, actions, and opportunities. The basic framework of The Forest and the Trees has two main points. The book discusses the main analogy of the “forest and the trees” and the analogy of the “One Thing”. This also mentions the relationship between social systems and individuals. There are many components that make up these topics. Also, there are different perspectives on…

    • 933 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Graph Theory

    • 6861 Words
    • 28 Pages

    Example. Below are 3 different pictorial representations of the same graph. e1 v1 e2 v2 e1 e3 v3 e4 v1 e4 e2 e3 v3 v2 e4 v1 e1 e3 v3 e2 v2…

    • 6861 Words
    • 28 Pages
    Powerful Essays
  • Powerful Essays

    Graph Theory

    • 2022 Words
    • 9 Pages

    and vertex coloring in graphs for map coloring and the assignment of frequencies in GSM…

    • 2022 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    BST representation A BST is a reference to a Node. A Node is comprised of four fields: A key and a value. A reference to the left and right subtree.…

    • 2419 Words
    • 10 Pages
    Good Essays
  • Good Essays

    Graph Theory

    • 1601 Words
    • 7 Pages

    German city of Königsberg (now it is Russian Kaliningrad) was situated on the river Pregel. It had a park situated on the banks of the river and two islands. Mainland and islands were joined by seven bridges. A problem was whether it was possible to take a walk through the town in such a way as to cross over every bridge once, and only once. Here is the graph model of the problem…

    • 1601 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    Graph Theory

    • 300 Words
    • 2 Pages

    Graph theory - the study of graphs and networks, is often considered part of combinatorics, but has grown large enough and distinct enough, with its own kind of problems, to be regarded as a subject in its own right.[12] Graphs are one of the prime objects of study in discrete mathematics. They are among the most ubiquitous models of both natural and human-made structures. They can model many types of relations and process dynamics in physical, biological and social systems. In computer science, they can represent networks of communication, data organization, computational devices, the flow of computation, etc. In mathematics, they are useful in geometry and certain parts of topology, e.g. theory. Algebraic has close links with group theory. There are also continuous graphs, however for the most part research in graph theory falls within the domain of discrete mathematics.…

    • 300 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    it422-hw2-sol

    • 814 Words
    • 4 Pages

    At the worst case, DFS generates about O(bm) nodes in the search tree. As follows :…

    • 814 Words
    • 4 Pages
    Good Essays

Related Topics