1 © 2012 Prof. Dr. Franz J. Brandenburg Graph Drawing main achievements and latest trends an update to 2002 Franz J. Brandenburg University of Passau.

Slides:



Advertisements
Similar presentations
Mathematical Preliminaries
Advertisements

Constraint Satisfaction Problems
Online Max-Margin Weight Learning with Markov Logic Networks Tuyen N. Huynh and Raymond J. Mooney Machine Learning Group Department of Computer Science.
Finite Element Method CHAPTER 4: FEM FOR TRUSSES
Analysis of Algorithms
Spectral Analysis of Function Composition and Its Implications for Sampling in Direct Volume Visualization Steven Bergner GrUVi-Lab/SFU Torsten Möller.
Introduction to Algorithms 6.046J/18.401J/SMA5503
Introduction to Algorithms
Polygon Scan Conversion – 11b
Visualization Techniques -
Reductions Complexity ©D.Moshkovitz.
Algorithms for Geometric Covering and Piercing Problems Robert Fraser PhD defence Nov. 23, 2012.
1 Outline relationship among topics secrets LP with upper bounds by Simplex method basic feasible solution (BFS) by Simplex method for bounded variables.
1 Bart Jansen Polynomial Kernels for Hard Problems on Disk Graphs Accepted for presentation at SWAT 2010.
1 Column Generation. 2 Outline trim loss problem different formulations column generation the trim loss problem master problem and subproblem in column.
Randomized Algorithms Randomized Algorithms CS648 1.
Hash Tables.
Reconstruction from Voxels (GATE-540)
CSE554Cell ComplexesSlide 1 CSE 554 Lecture 3: Skeleton and Thinning (Part II) Fall 2013.
COMP 482: Design and Analysis of Algorithms
Outline Minimum Spanning Tree Maximal Flow Algorithm LP formulation 1.
Comp 122, Spring 2004 Graph Algorithms – 2. graphs Lin / Devi Comp 122, Fall 2004 Identification of Edges Edge type for edge (u, v) can be identified.
1 Adornments, Flowers, and Kneser-Poulsen Bob Connelly Cornell University (visiting University of Cambridge)
Copyright 2012, 2008, 2004, 2000 Pearson Education, Inc.
演 算 法 實 驗 室演 算 法 實 驗 室 On the Minimum Node and Edge Searching Spanning Tree Problems Sheng-Lung Peng Department of Computer Science and Information Engineering.
Distributed Forces: Centroids and Centers of Gravity
Great Theoretical Ideas in Computer Science
Introduction to Machine Learning Fall 2013 Perceptron (6) Prof. Koby Crammer Department of Electrical Engineering Technion 1.
Scale Free Networks.
Lecture 3-4 Clustering (1hr) Gaussian Mixture and EM (1hr)
Joint work with Andre Lieutier Dassault Systemes Domain Theory and Differential Calculus Abbas Edalat Imperial College Oxford.
CS1022 Computer Programming & Principles
Abbas Edalat Imperial College London Contains joint work with Andre Lieutier (AL) and joint work with Marko Krznaric (MK) Data Types.
1 Motion and Manipulation Configuration Space. Outline Motion Planning Configuration Space and Free Space Free Space Structure and Complexity.
Surface normals and principal component analysis (PCA)
Splines I – Curves and Properties
STATIKA STRUKTUR Genap 2012 / 2013 I Made Gatot Karohika ST. MT.
Polynomial Functions of Higher Degree
Planar graphs Algorithms and Networks. Planar graphs2 Can be drawn on the plane without crossings Plane graph: planar graph, given together with an embedding.
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Mani Srivastava UCLA - EE Department Room: 6731-H Boelter Hall Tel: WWW: Copyright 2003.
IAT Graphs ______________________________________________________________________________________ SCHOOL OF INTERACTIVE ARTS + TECHNOLOGY [SIAT]
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 30 - Dynamic HTML: Structured Graphics ActiveX Control Outline 30.1Introduction 30.2Shape Primitives.
1 Functions and Applications
9. Two Functions of Two Random Variables
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.5) Sept, 14, 2012.
The Small World Phenomenon: An Algorithmic Perspective Speaker: Bradford Greening, Jr. Rutgers University – Camden.
Bart Jansen 1.  Problem definition  Instance: Connected graph G, positive integer k  Question: Is there a spanning tree for G with at least k leaves?
Planar Graphs: Coloring and Drawing
Epp, section 10.? CS 202 Aaron Bloomfield
Interval Graph Test.
Minimum Vertex Cover in Rectangle Graphs
Discrepancy and SDPs Nikhil Bansal (TU Eindhoven, Netherlands ) August 24, ISMP 2012, Berlin.
Probabilistic Reasoning over Time
Technische Universität München Computer Graphics SS 2014 Graphics Effects Rüdiger Westermann Lehrstuhl für Computer Graphik und Visualisierung.
13-Optimization Assoc.Prof.Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.
Orthogonal Drawing Kees Visser. Overview  Introduction  Orthogonal representation  Flow network  Bend optimal drawing.
Motion Planning for Point Robots CS 659 Kris Hauser.
Force directed graph drawing Thomas van Dijk. The problem Given a set of vertices and edges, compute positions for the vertices. If the edges don’t have.
A New Force-Directed Graph Drawing Method Based on Edge- Edge Repulsion Chun-Cheng Lin and Hsu-Chen Yen Department of Electrical Engineering, National.
Rectangle Visibility Graphs: Characterization, Construction, Compaction Ileana Streinu (Smith) Sue Whitesides (McGill U.)
SIMS 247: Information Visualization and Presentation jeffrey heer
Crossing Minimisation (1) Ronald Kieft. Global contents Specific 2-layer Crossing Minimisation techniques After the break, by Johan Crossing Minimisation.
Paradigms for Graph Drawing Graph Drawing: Algorithms for the Visualization of Graphs - Chapter 2 Presented by Liana Diesendruck.
GD 2014 September 25, 2014 Department of Computer Science University of Manitoba, Canada Stephane Durocher Debajyoti Mondal.
UNC Chapel Hill M. C. Lin Introduction to Motion Planning Applications Overview of the Problem Basics – Planning for Point Robot –Visibility Graphs –Roadmap.
Department of Computer Science and Engineering Bangladesh University of Engineering and Technology M. Sc. Engg. Thesis Md. Emran Chowdhury ( P)
Algorithms and Networks
Morphing and Shape Processing
Haim Kaplan and Uri Zwick
Presentation transcript:

1 © 2012 Prof. Dr. Franz J. Brandenburg Graph Drawing main achievements and latest trends an update to 2002 Franz J. Brandenburg University of Passau

2 © 2012 Prof. Dr. Franz J. Brandenburg Graph Drawing Goals: Design algorithms for „nice“ visualizations of graphs Construct well-readable and understandable diagrams Mathematically A drawing is a mapping of a graph on the plane (or another surface) - one to one on the vertices placement phase, assign coordinates to the vertices, no overlaps - simple curves the edges routing phase Nice: specify costs or aesthetics to measure the quality of drawings or to compare two drawings d 1 (G) and d 2 (G) and say which is better

3 © 2012 Prof. Dr. Franz J. Brandenburg Graph Drawing Synonyms: Graph network diagram schema map D planar

4 © 2012 Prof. Dr. Franz J. Brandenburg Formalization Graph drawing is an optimization problem for a class of graphs (directed / undirected, planar) G compute min {cost (d(G)) | G in G, the drawing d(G) satisfies certain restrictions cost is a cost measure} and such that d(G) is computed efficiently. D.E.Knuth (GD1996) "aesthetics cannot be formalized“ There is a gap between the user's view and the formalism.

5 © 2012 Prof. Dr. Franz J. Brandenburg Application Szenario Graph Drawing is used if there is a graph /network / diagram Graph Drawing is the back-end of a process – and often not well respected $$ Problem Data as lists of discrete objects and relations Graph internally: an adjazency list or an adjazencymatrix visualization model as a graph analysis by graph algorithms Graph Drawing Graph internally: an adjazency list or an adjazencymatrix

6 © 2012 Prof. Dr. Franz J. Brandenburg Classes of Graphs general undirected graphs spring embedders (1982) stress minimization multi-dimensional directed graphs (mostly acyclic) four phase approach (Sugiyama algorithm (1981)) planar graphs (undirected and directed) O(n) tests (1972) shift technique (de Fraysseix, Pach, Pollack and Schnyder realizers (1990)) orthogonal drawings upward drawings for directed graphs trees Reingold-Tilford algorithm (1981)

7 © 2012 Prof. Dr. Franz J. Brandenburg Drawing Styles vertices = small points The real expansion and shape is neglected edges = smooth curves the standard polylines with straight straight segments and few bends optimal:straight lines specialorthogonal polyline drawings splinesonly in a postprocessing step labels often inside the vertices a separate topic

8 © 2012 Prof. Dr. Franz J. Brandenburg Aesthetics D.E.Knuth (GD1996) "aesthetics cannot be formalized“ There is a gap between the user's view and the formalism. R. Tamassia (IEEE SMC 1988, p.62) aesthetics are criteria for graphical aspects of readability M. Bense (1930, desingner at Bauhaus school) aesthetics = order / compexity order = regularity, symmetry,... complexity = information theoretic bound, #bits H. Purchase et al. (topic in HCI) experimental tests: what is easier/faster to recognize

9 © 2012 Prof. Dr. Franz J. Brandenburg Aesthetics:Formalized resolution or geometric criteria –area (2), volume (3D), height, width, aspect ratio –edge length (secondary) –integrality, on the grid discrete criteria –crossings (no crossings = planar) –bends (no bends = straight line) –and others (slopes e.g. orthogonal) structure –direction (upward) –planar –tree –clustering symmetry –center father above the children –geometric symmetry (rotation, reflection) –graph symmetry, graph isomorphy

10 © 2012 Prof. Dr. Franz J. Brandenburg General Graphs Input: a huge undirected graph (1000 and more vertices) and no information on its structure goal: uniform distribution of vertices (and edge length).... find clusters spring embedders and stress minimization approaches repulsive force between vertices (only in an area of a grid) attractive force along an edge (or a path) use quadratic or cubic formulae for the forces (stress) at each vertex: compute the vector of forces move the vertex along that vector iterate pro:intuitive, easy to adapt (add more forces) cons: slow (you need a bag of tricks)

11 © 2012 Prof. Dr. Franz J. Brandenburg Multidimensional Method in 2002: a promising new concept by D. Harel and Y. Koren, GD2002 choose dimension m, e.g. d = 50 (so to speak: its fpt in d) choose m nodes as pivot elements, randomly distributed here in O(d|E|) by BFS v 1 at random and v i+1 = max {distance{v 1,...,v i }} (2-approximation of d-center problem) for each node v compute its graph theoretic distance d(v, v i ), i=1,...,d to each of the pivot nodes and assign an d-dim vector X(v) = (d(v, v 1 ),..., d(v, v d )) This is a d-dimensional drawing of G.

12 © 2012 Prof. Dr. Franz J. Brandenburg Multi-Dimensional projection into R2 (or R3) by ”principal component analysis“ transform the coordinates in each dimension around their barycenter X i (v) = X i (v) – 1/n∑vXi(v) build the d  n center matrix M[i,v] = X i (v) and the d  d covariance matrix S = 1/n M M T compute the first 2 eigenvectors of S normalize the eigenvectors to ||u i || = 1 the 2-D projection by v --> (X i (v) u 1, X i (v) u 2 ) (maximal variance in 1st and 2nd dimension) Results: excellent pictures: as good as spring embedders and stress minimization extremely fast, 3 sec. for node graphs

13 © 2012 Prof. Dr. Franz J. Brandenburg Pictures (Koren)

14 © 2012 Prof. Dr. Franz J. Brandenburg 4-Phase Method (Sugiama) a directed graph G = (V, E) (with cycles) sorted level graph, a left to right ordering decycling, feedback arc set problem crossing reductions sort by levels or global crossing a levelled / layererd graph a directed acyclic graph, DAG leveling of vertices compute Y-coordinates final drawing with (X,Y) coordinates for all points routing, coordinate assignment heuristics, e.g. Eades et al topsort or Coffman-Graham level by level sweeps or global thinning technique

15 © 2012 Prof. Dr. Franz J. Brandenburg Sugiyama Algorithm Introduced Sugiyama, Tagawa, Todo, IEEE Trans SMC (1981) refinements and improvements Gansner, Koutsofios, North, Vo, IEEE Trans Soft. Eng (1993) The most frequently used GD algorithm The best studied GD algorithm PRO: decomposition by Software Engineering Principles CONS: mathematics no quality guarantees (area, crossings,...) no time bounds no standard: a framework of dozens of sub-algorithms

16 © 2012 Prof. Dr. Franz J. Brandenburg recent Advancements 1) feedback arc set NP-hard even for tournaments and 3-approximation by Quicksort sifting (1-OPT) techniques give best quality almost 50% of the edges are „wrong“ ( from ) 2)+3) integrated „leveling + crossing“ approaches with +10% and faster algorithms e.g. by edge bundeling 4) thinning technique by Brandes, Köpf (GD2001) with a guarantee of at most 2 bends per edge 5) solution of Sugiama et al‘s recurrent hierarchies

17 © 2012 Prof. Dr. Franz J. Brandenburg Recurrent Hierarchies proposed K. Sugiyama, T. Tagawa, T. Todo (1981) - a cyclic leveling modulo k - drawing on the rolling cylinder approach (Bachmaier, Brandenburg, Brunner, JGAA 2012) - no decycling - heuristic for leveling - crossing reduction by global technique - coordinate assignment with shearing and 2 bends per edge

18 © 2012 Prof. Dr. Franz J. Brandenburg Trees D.E. Knuth (1968) How shall we draw a tree if the tool is a mechanical type writer with / \ | -- Reingold, Tilford ( 1981): the contour technique recursive bottom-up in O(n) time by a tricky recursion: T(n) < 2 site(tree)-height(tree) T left T right

19 © 2012 Prof. Dr. Franz J. Brandenburg Tree Folding save space, minimize the area References: T. Chan, M. Goodrich, S.R. Kosaraju, R. Tamassia, Comput. Geom. 23 (2002) A. Garg, M. Goodrich, R. Tamassia, Int. J. Comput. Geom. Appl. 6 (1996) C. Shin, S.K. Kim K-Y. Chwa, Comput Geom. 15 (2000)

20 © 2012 Prof. Dr. Franz J. Brandenburg planar graphs shifting technique and realizers de Fraysseix, Pach, Pollack (Combinatorica 1990) Schnyder, ACM SODA 1990 Theorem Every planar graph has a straight-line grid drawing with O(n) area Size of O: 4/9  1 (8/9 is under work) but the pictures are bad with too many too small angles Recent improvements/Refinements segments = # straight lines (one long line for many successive edges counts 1) few slopes slightly weaker preconditions (2-connected +...)

21 © 2012 Prof. Dr. Franz J. Brandenburg recent Trends Sources: Proc. GD....,2011 LNCS , 4372, 5166,5417,5849, 6502, 7034 Journal Graph Algorithms and Applications JGAA Computational Geometry: Theory and Applications.... all Algorithms and Combinatorics Journals Trends: almost planar weaken the restrictions of planarity generalize the class of planar graphs preserve properites like linear density,...

22 © 2012 Prof. Dr. Franz J. Brandenburg What has been done in the past decade? Hundreds of improvements at all places faster algorithms more parameters (slope,...) experimental evaluations Some new trends Breakthrough? (NO)

23 © 2012 Prof. Dr. Franz J. Brandenburg Trends - confluent drawings (Eppstein, Kobourov et al, GD2003) - RAC (right angle crossing) - 1-planarity - point set embeddings - clustered planarity - new applications: metro maps, train tracks networks in the biosciences

24 © 2012 Prof. Dr. Franz J. Brandenburg Confluent Drawings Dickerson, Eppstein, Goodrich, Meng, JGAA 9 (2005) allow crossings at train tracks

25 © 2012 Prof. Dr. Franz J. Brandenburg Confluent Graphs all planar (trivial) all co-graph (union and edge-complementation) all complements of trees all interval graphs Strong confluency (a curve for an edge does not pass a vertex) is NP-hard non-confluent Petersen graph 4-dim hypercube

26 © 2012 Prof. Dr. Franz J. Brandenburg RAC Right angle crossings Didimo, Eades, Liotta: WADS 2008, LNCS 5664 Ref. Angelini et al On the Perspectives Opened by Right Angle Crossing Drawings GD 2010, LNCS 5849 and relaxation to a large angle >  Facts Every graph can be drawn as RAC with 3 bends, and 3 are necessary The area is quadratic straight line, then at most 4n-10 edges

27 © 2012 Prof. Dr. Franz J. Brandenburg 1-planarity Definition (G. Ringel, 1965) A graph G is 1-planar if each edge is crossed at most once (by all other edges) Properites an edge coloring black with crossings red x blue a 6-vertex coloring (Borodin 1984) #edges < 4n-8 (Pach, Toth 1997, and others) not closed under edge contraction there are infinitely many minimal non-1-planar graphs (Korzhik, 2007) test is NP-hard (Korzhik, Mohar Graph Drawing 2008, LNCS 5166)

28 © 2012 Prof. Dr. Franz J. Brandenburg 1-planar + Rotation System Definition a rotation system (embedding) of a graph G = (V,E) is the cylic order of the edge (neighbors) of v for each vertex v The crossing pair system of a graph G = (V,E) is G together with all pairs (e,e‘) of crossing edges. Lemma Given a crossing pair system. Test for 1-planarity is in O(n), and there is a straight-line drawing of G on a polynomial size grid. Claim (under work) (Auer, Brandenburg, Gleißner, Reislhuber) Given a rotation system: Test for 1-planarity is NP-hard.... by a reduction from planar 3-SAT

29 © 2012 Prof. Dr. Franz J. Brandenburg Point sets Given: A set of N > n points in the plane free scenario Can a graph of size n be embedded into this point set such that e.g. the drawing is planar and straight line Yes, with at most 2 bends per edge NP-hard for outerplanar graphs and straight line embeddings fixed scenario, the vertices are already mapped to the points every planar graphs can be embedded into any point set with O(n) bends per edge

30 © 2012 Prof. Dr. Franz J. Brandenburg Simultaneous Embeddings Is there a set of pints such that two graphs be embedded into the same set one after the other such that planarity is preserved NO for a path and a tree (Kaufmann, Wiese, JGAA 6) NP-hard for two planar graphs The constructions behind points sets are driven by geometry and not by graphs. Triangles, excluding certain combinations are the key tools in the proofs.

31 © 2012 Prof. Dr. Franz J. Brandenburg C-planarity Given: a graph G and a clustering C of the vertices Question: Does G have a planar clustered drawing such that the clustered are drawn inside of rectangles. Complexity: NP?? still open improvements if connectivity (and other assumptions) are imposed

32 © 2012 Prof. Dr. Franz J. Brandenburg Applications Networks metro maps (Sydney) train tracks (European railway systems – and special analysis) in bio-sciences (GD 2009) Perspectives: What is the future of Graph Drawing ???