cs6964 March TREES & GRAPHS Miriah Meyer University of Utah

Similar documents
CP SC 8810 Data Visualization. Joshua Levine

Graph and Tree Layout

Graph and Tree Layout

Trees & Graphs. Nathalie Henry Riche, Microsoft Research

IAT 355 Intro to Visual Analytics Graphs, trees and networks 2. Lyn Bartram

cs6964 February TABULAR DATA Miriah Meyer University of Utah

Lecture 13: Graphs/Trees

1.2 Graph Drawing Techniques

Graphs and Networks 1

Graph/Network Visualization

Graph Layout. Last Time: Conveying Structure. Framework for conveying structure. Photographs and illustrations. What is a good view?

Drawing Problem. Possible properties Minimum number of edge crossings Small area Straight or short edges Good representation of graph structure...

8. Visual Analytics. Prof. Tulasi Prasad Sariki SCSE, VIT, Chennai

Lecture 12: Graphs/Trees

Hierarchies and Trees 1 (Node-link) CS Information Visualization November 12, 2012 John Stasko

Graphs and Networks 2

Week 6: Networks, Stories, Vis in the Newsroom

2D Visualization Techniques: an overview

Information Visualization. Jing Yang Spring Hierarchy and Tree Visualization

cs6964 March TOOLKITS Miriah Meyer University of Utah

Graphs and Networks 1

V 2 Clusters, Dijkstra, and Graph Layout"

V 2 Clusters, Dijkstra, and Graph Layout

Hierarchies and Trees 1 (Node-link) CS 4460/ Information Visualization March 10, 2009 John Stasko

VISUALIZING TREES AND GRAPHS. Petra Isenberg

DSC 201: Data Analysis & Visualization

Lecture 13: Graphs and Trees

CS Information Visualization Sep. 2, 2015 John Stasko

Information Visualization. SWE 432, Fall 2016 Design and Implementation of Software for the Web

Information Visualization

Graph Drawing Contest Report

Sparse matrices, graphs, and tree elimination

Information Visualization. Jing Yang Spring Graph Visualization

Graphs and Networks 1

CIS 467/602-01: Data Visualization

Dynamic Parameter Spring Model for Automatic Graph Layout. Xuejun Liu. (Doctoral Program in Computer Science) Advised by Jiro Tanaka

CS Information Visualization Sep. 19, 2016 John Stasko

CS-5630 / CS-6630 Visualization for Data Science The Visualization Alphabet: Marks and Channels

Network visualization techniques and evaluation

Courtesy of Prof. Shixia University

Research Incubator: Combinatorial Optimization. Dr. Lixin Tao December 9, 2003

Data Visualization. Fall 2016

cs6630 September VISUAL ENCODING Miriah Meyer University of Utah

Glyphs. Presentation Overview. What is a Glyph!? Cont. What is a Glyph!? Glyph Fundamentals. Goal of Paper. Presented by Bertrand Low

INFO 424, UW ischool 11/1/2007

Visual Encoding Design

DATA ABSTRACTION & INTRO TO TABLEAU

Large Scale Information Visualization. Jing Yang Fall Graph Visualization

Lecture 7: Depth/Occlusion

Agenda. Introduction Curve implementation. Particle System. - Requirements -What are all those vectors? -Where should I put things?

Hierarchy and Tree Visualization

BDVA 2016 Workshop Visual Analytics for Relational Data Dr. Quang Vinh Nguyen

Übung zur Vorlesung Informationsvisualisierung. Emanuel von Zezschwitz Ludwig-Maximilians-Universität München Wintersemester 2012/2013

CSE 214 Computer Science II Introduction to Tree

CSE512 :: 4 Feb Animation. Jeffrey Heer University of Washington

TREES cs2420 Introduction to Algorithms and Data Structures Spring 2015

COMP 4601 Hubs and Authorities

V 2 Clusters, Dijkstra, and Graph Layout

Information Visualization. Jing Yang Fall Hierarchy and Tree Visualization

Graph Visualization: Energy Based Methods (aka force directed methods)

Facet: Multiple View Methods

Multivariate Data & Tables and Graphs. Agenda. Data and its characteristics Tables and graphs Design principles

Applying the weighted barycentre method to interactive graph visualization

hierarchical techniques

Trees : Part 1. Section 4.1. Theory and Terminology. A Tree? A Tree? Theory and Terminology. Theory and Terminology

Edge Equalized Treemaps

Multivariate Data & Tables and Graphs

Networking Sensors, II

Graphs and Networks. CS Information Visualization March 2, 2004 John Stasko

[Slides Extracted From] Visualization Analysis & Design Full-Day Tutorial Session 4

Decision Trees: Part 2

Lecture 5: DATA MAPPING & VISUALIZATION. November 3 rd, Presented by: Anum Masood (TA)

A Spring Modeling Algorithm to Position Nodes of an Undirected Graph in Three Dimensions

Learning Objectives for Data Concept and Visualization

Welfare Navigation Using Genetic Algorithm

We will start at 2:05 pm! Thanks for coming early!

RINGS : A Technique for Visualizing Large Hierarchies

Parallel Coordinates ++

Statistical graphics in analysis Multivariable data in PCP & scatter plot matrix. Paula Ahonen-Rainio Maa Visual Analysis in GIS

Interactive Visual Exploration

Visualisation of state machines using the Sugiyama framework. Master of Science Thesis in Computer Science VIKTOR MAZETTI HANNES SÖRENSSON

2D/3D Geometric Transformations and Scene Graphs

Interactive, Tree-Based Graph Visualization

Visual Encoding Design

PASSWORDS TREES AND HIERARCHIES. CS121: Relational Databases Fall 2017 Lecture 24

Multidimensional Interactive Visualization

Multivariate Data & Tables and Graphs. Agenda. Data and its characteristics Tables and graphs Design principles

CS Information Visualization March 4, 2004 John Stasko

Algorithms for Graph Visualization

Clustering and Visualisation of Data

Good enough to great: A quick guide for better data visualizations

Introduction to Graphs. CS2110, Spring 2011 Cornell University

Graphs and Networks. CS 4460/ Information Visualization March 24, 2009 John Stasko. Connections throughout our lives and the world

Animation. Why use motion? Volume rendering [Lacroute 95] Cone Trees [Robertson 91]

Graph Compare: Simultaneous Graph Layout and Visualization for Structural Comparison

CS839: Epistemic Net Visualization Challenge

ABSTRACT I. INTRODUCTION II. METHODS AND MATERIAL

Lecture 6: Statistical Graphics

i-vis Information Visualization Research Group

Parallel Computing. Slides credit: M. Quinn book (chapter 3 slides), A Grama book (chapter 3 slides)

Transcription:

cs6964 March 1 2012 TREES & GRAPHS Miriah Meyer University of Utah

cs6964 March 1 2012 TREES & GRAPHS Miriah Meyer University of Utah slide acknowledgements: Hanspeter Pfister, Harvard University Jeff Heer, Stanford University Tamara Munzner, UBC

administrivia 3

feb 14-23 : proposal meetings march 7 : presentation topics due march 9 : proposals due march 27-april 3 : project updates april 5-24 : paper presentations may 1 : final project presentations may 3 : process books due 4

- definitions - visualizing trees - indented - node link - enclosure - layered - visualizing graphs - node link - matrix - network summarizations

GRAPHS & TREES - graphs - model relations amount data - nodes and edges - trees - graphs with hierarchical structure - connected graph with N-1 edges - nodes as parents and children 6

SPATIAL LAYOUT - primary concern of graph drawing is the spatial layout of nodes and edges - often (but not always) the goal is to effectively depict the graph structure - connectivity, path-following - network distance - clustering - ordering (e.g., hierarchy level) 7

VISUALIZING TREES - recursion makes it elegant and fast to draw trees - approaches: - indentation - node link - enclosure - layering

Drawing trees - indentation INDENTATION

NODE-LINK: Reingold-Tilford

ENCLOSURE 11 http://hci.stanford.edu/jheer/files/zoo/

LAYERED http://ivtk.sourceforge.net/ 12 http://hci.stanford.edu/jheer/files/zoo/

13

VISUALIZING GRAPHS 14

GRAPH LAYOUTS - node link layouts - layered / Sugiyama - force directed - other - matrix layouts - attribute based layouts

SUGIYAMA-TYPE LAYOUT - great for graphs that have an intrinsic ordering - depth in graph mapped to one axis UNIX ancestry

Drawing graphs node link SUGIYAMA STEP 1 - create layering of graph - from domain specific knowledge - longest path from root - algorithmically determine best layering (NP-Hard) - dummy nodes for long edges 1 2 3 4 5 6 7 8 9 10 11

Drawing graphs node link SUGIYAMA STEP 2 - minimize crossings layer by layer (NP-hard) - numerous heuristics available 1 2 3 4 8 6 5 7 11 9 10

Drawing graphs node link SUGIYAMA STEP 3 - final assignment of x-coordinates - routing of edges 1 2 3 4 8 6 5 7 11 9 10

20 Gansner 1993

SUGIYAMA + nice, readable top down flow + relatively fast (depending on heuristic used for crossing minimization) - not really suitable for graphs that don t have an intrinsic top down structure - hard to implement - use free graphviz lib instead: http://www.graphviz.org

Drawing graphs node link FORCE DIRECTED LAYOUT - no intrinsic layering, now what? - physics model - edges = springs - nodes = repulsive particles

AESTHETIC RESULTS highschool dating network

FORCE MODEL - many variations, but usually physical analogy: - repulsion : f R (d) = C R * m 1 *m 2 / d 2 - m 1, m 2 are node masses - d is distance between nodes - attraction : f A (d) = C A * (d L) - L is the rest length of the spring - i.e. Hooke s Law - total force on a node x with position x - neighbors(x) : f A ( x -y ) * (x -y ) + -f R ( x -y ) * (x -y )

ALGORITHM - start from random layout - (global) loop: - for every node pair compute repulsive force - for every edge compute attractive force - accumulate forces per node - update each node position in direction of accumulated force - stop when layout is good enough

Drawing graphs node link FORCE DIRECTED LAYOUTS + very flexible, aesthetic layouts on many types of graphs + can add custom forces + relatively easy to implement - repulsion loop is O(n 2 ) per iteration - can speed up to O(N log N) using quadtree or k-d tree - prone to local minima - can use simulated annealing

mentionmap 27

28

29

OTHER NODE LINK LAYOUTS - orthogonal - great for UML diagrams - algorithmically complex - circular layouts - emphasizes ring topologies - used in social network diagrams - nested layouts - recursively apply layout algorithms - great for graphs with hierarchical structure

31

Drawing graphs node link NODE LINK LAYOUTS + understandable visual mapping + can show overall structure, clusters, paths + flexible, many variations - all but the most trivial algorithms are > O(N 2 ) - not good for dense graphs - hairball problem!

MATRIX LAYOUTS - instead of node link diagram, use adjacency matrix representation A A B C D E B C A B C D E D E

SPOTTING PATTERNS IN MATRICES Henry 2006

MATRIX REPRESENTATIONS + great for dense graphs + visually scalable + can spot clusters - abstract visualization - hard to follow paths

ALTERNATIVE LAYOUT 36

ATTRIBUTE-DRIVEN LAYOUT - large node-link diagrams get messy! - are there additional structures we can exploit? - idea: use data attributes to perform layout - e.g., scatterplot based on node values - dynamic queries and/or brushing can be used to enhance perception of connectivity 37

cerebral 38

semantic substrates 39

40 metabolic network

0 1.00 GLYCOLYSIS G6P GLU a PPP b R5P c d G3P G3P TCA PYR CIT3 0 1.00

PIVOT GRAPH - task abstraction - show relationship between node attributes and connections in a multi-attribute graph - data abstraction - relational dataset - nodes (and edges) have multiple discrete attributes - rollup and selection transformations Wattenberg 2006

VISUAL ENCODING - line (1D) or grid (2D) layout - area subdivided by number of values for an attribute - number of nodes based on attribute count, not original graph node count - size of nodes and edges related to number of aggregated original nodes and edges - scalability through abstraction, not layout algorithm 44

VISUAL ENCODING - line for 1D rollup, or grid for 2D case 45 Wattenberg 2006

INTERACTION - changing rollup/selection choices - animated transitions between states 46

PIVOT GRAPH - in general, more compact than matrix representation 47

CRITIQUE: what do you think? 48

CRITIQUE - strengths - focus on multi-attribute graphs - abstraction matches focus - scales to large graphs - nice component of multiview system - weaknesses - graph topology not always preserved through rollup and selection - only two attributes - doesn t support continuous variables - multivariate edges? 49

RECAP 50

- TREES indentation simple, effective for small trees node link and layered looks good but needs exponential space enclosure (treemaps) great for size related tasks but suffer in structure related tasks - GRAPHS node link familiar, but problematic for dense graphs adjacency matrices abstract, hard to follow paths attribute-driven not always possible - TAKE HOME MESSAGE: no ultimate solution

exercise 52

GRAPH DRAWING EXERCISE adjacency matrix!"""#"""$"""%"""&"""'"""(""")"""*"""!+" """"",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,," """"-" ""!"-"+"""+"""!"""+"""+"""!"""!"""+"""+"""+" """"-" ""#"-"+"""+"""!"""+"""+"""!"""+"""!"""!"""+" """"-" ""$"-"!"""!"""+"""+"""+"""+"""+"""+"""+"""!" """"-" ""%"-"+"""+"""+"""+"""!"""+"""!"""+"""!"""+" """"-" ""&"-"+"""+"""+"""!"""+"""+"""+"""!"""+"""+" """"-" ""'"-"!"""!"""+"""+"""+"""+"""+"""+"""!"""!" """"-" ""("-"!"""+"""+"""!"""+"""+"""+"""!"""+"""+" """"-" "")"-"+"""!"""+"""+"""!"""+"""!"""+"""+"""+" """"-" ""*"-"+"""!"""+"""!"""+"""!"""+"""+"""+"""+" """"-" "!+"-"+"""+"""!"""+"""+"""!"""+"""+"""+"""+" """"- " create an aesthetically pleasing node-link diagram representation 53

L16: Maps REQUIRED READING 54

55

56

57