1 / 64

Lecture 19: Graphs and Networks

Lecture 19: Graphs and Networks. April 18, 2013 COMP 150-2 Visualization. Definition. Graphs represent connections or relationships Social network Software execution (call graph) Gene expression Financial transactions WWW US telephone system

zander
Télécharger la présentation

Lecture 19: Graphs and Networks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 19:Graphs and Networks April 18, 2013 COMP 150-2Visualization

  2. Definition • Graphs represent connections or relationships • Social network • Software execution (call graph) • Gene expression • Financial transactions • WWW • US telephone system • One of the oldest and most studied areas of information visualization

  3. What Makes a Graph? • Vertices (nodes) • Edges (links) • Adjacency list: • 1: 2 • 2: 1, 3 • 3: 2

  4. Comparing Representations

  5. Terminology • Directed vs. Undirected • Cyclic vs. Acyclic • Degree of a vertex • In-degree • Out-degree • Weights on edges

  6. More Terminology • Centrality Measures: • Degree Centrality • How many neighbors does a vertex have? • Betweenness Centrality • How often does a vertex appear in paths between other nodes? • Closeness Centrality • How quickly can a node reach all other nodes in the graph? • Eigenvector Centrality • Google PageRank (assumes directed graph)

  7. Graphs vs. Trees • Tree is a special case of a general graph • There are no cycles in a tree • Edges are (usually) directed or are implicitly directed • Special designations for root, leaves, etc.

  8. Challenges in Graph Visualization • Graph layout and position • Related to your assignment! • Navigation / Interaction • How to support a user in understanding all the relationships in the graph • Scale • What happens if the graph has 10 nodes? 1,000 nodes? 1,000,000 nodes?

  9. Graph Drawing Conference • The problem of graph layout remains unsolved… • Question: what are we trying to optimize? • http://www.graphdrawing.org/gd2010/

  10. What Makes a Good Layout? • Total Edge Length – minimize towards proper scale • Area – minimize for efficiency (Tufte!) • Maximum Edge Length – minimize longest edge • Uniform Edge Lengths – minimize variances • Total Bends – minimize orthogonal towards straight lines • Crossings – minimize towards planar • http://www.youtube.com/watch?v=EiS-W9aeG0s

  11. Let People Decide! • Paper by Frank van Ham and Bernice Rogowitz from IBM Research (published in InfoVis 2008) • http://www.research.ibm.com/visual/papers/IEEEViz_VanHam%20and%20Rogowitz_final.pdf

  12. Not An Exact Set of Criteria Image from Kamada and Kawai (1988)

  13. NetViz Nirvana • Proposed by Ben Shneiderman • Every node is visible • Every node’s degree is countable • Every edge can be followed from source to destination • Clusters and outliers are identifiable

  14. Questions?

  15. Common Layout Techniques • Hierarchical • Force-directed • Circular • Geographic • Clustered • Attribute-based • Matrix

  16. Layout + Scale • Many of these layout algorithms are constrained by scale. • For example, (naive) force directed layout is O(n^2). When n becomes large, computation slows down. • Even without computation, when n becomes large, it is difficult (impossible?) to guarantee visibility for every vertex. • Solutions?

  17. Navigation / Interaction • Give a large, dense graph, how do we use interaction to help the user query, visit, traverse, and analyze the graph? • Such navigation / interaction aides can utilize other visualization techniques

  18. Examples • http://www.nytimes.com/interactive/2008/05/05/science/20080506_DISEASE.html • http://mibi.deviantart.com/art/Death-and-Taxes-2007-39894058 • http://perlitalabs.files.wordpress.com/2010/06/social-graphs-to-visualize-political-factions1.png

  19. More Examples • http://www-958.ibm.com/software/data/cognos/manyeyes/visualizations/co-occurrences-of-names-in-the-new-3 • http://conceptmodeler.wordpress.com/ • http://www.visualcomplexity.com/vc/project_details.cfm?id=392&index=392&domain= • http://blog.kobayashi.eu/wp-content/uploads/2010/09/poster_rappers_1300.jpg

  20. Social Networks • Facilitate understanding of complex socio-economic patterns • Social Science visualization gallery (LotharKrempel): • http://www.mpi-fg-koeln.mpg.de/~lk/netvis.html • Social Network Analysis (www.insna.org) • http://www.slate.com/id/2180392/

  21. Geography

  22. Examples • http://www.nsf.gov/news/special_reports/scivis/follow_money.jsp • http://www.facebook.com/notes/facebook-engineering/visualizing-friendships/469716398919 • http://www.aaronkoblin.com/work/flightpatterns/

  23. Subway Maps London Tube

  24. Boston T • http://www.google.com/images?q=Boston+T&um=1&ie=UTF-8&source=og&sa=N&hl=en&tab=wi&biw=1031&bih=1376 • http://www.mbta.com/schedules_and_maps/subway/

  25. Questions?

  26. Circular Layout

  27. Circular Layout + Edge Bundling • http://flare.prefuse.org/apps/dependency_graph

  28. Tree Layout • Forcing a graph into a tree layout • Spanning tree • Hierarchical Layout

  29. Sugiyama Method Images from van Dalen and Spaans (2001)

  30. Force-Directed Layout • Common Spring Model • Edges – springs that attract • Vertices – charged particles that repel • Iteratively computes new positions of the vertices based on the lengths of the edges • Seeks to minimize the total energy of the system down to 0 • http://jung.sourceforge.net/applet/showlayouts.html

  31. Force Directed Layout • Naïve Spring network (assignment 5) • Optimized Spring network (Barnes-Hut) • http://en.wikipedia.org/wiki/Barnes%E2%80%93Hut_simulation • Frauchterman-Reingold • Adds global temperature (simulated annealing) • http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.13.8444 • Kamada-Kawai • Computes the derivative of the overall energy function • Iteratively improves the search for global layout • http://cs.wellesley.edu/~cs315/Papers/Kamada-Graph%20Drawing.pdf

  32. Questions?

  33. Recent Trends in Graph Visualization • Attributes of nodes influence the layout • Not just arbitrary layout • Utilize graph statistics • Driven by interests in social network analysis

  34. PivotGraph • Cluster on common node attributes • Put all A’s together into a node, all B’s together into a node • “Roll up” the nodes • Draw edge from A to B depending on how many edges go from some A to some B • Position nodes on a grid based on data attributes Wattenberg CHI 06

  35. PivotGraph

  36. Semantic Substrates • Group nodes into regions • According to an attribute • Categorical, ordinal, or binned numerical • In each region: • Position nodes according to some other attributes • Give users control of link visibility • http://www.cs.umd.edu/hcil/nvss/ ShneidermanInfoVis 06

  37. Semantic Substrates

  38. Vizster • Visualize social networking sites (Friendster, MySpace, Facebook). • Think 2005 when social network is just starting! • http://hci.stanford.edu/jheer/projects/vizster/ HeerInfoVis 05

  39. SocialAction • Combines graph structure analysis with interactive visual exploration • Multiple coordinated views • Lists by ranking for analysis data • Force-directed layout for graph • http://www.cs.umd.edu/hcil/socialaction/ PererInfoVis 06

  40. Social Network Attributes • Barycenter • total shortest path of a node to all other nodes • Betweenness Centrality • How often a node appears on the shortest paths between all other nodes • Closeness Centrality • How close a node is compared to all other nodes • Min-cut • If the removal of a node creates disconnected subgraph(s) • Degree • Number of neighbors • HITS (Hyperlink-Induced Topic Search), also known as “Hubs and Authorities” • Precursor to Google PageRank

  41. Attribute Ranking • Run these measures on all nodes and rank them • Use secondary visualizations to display them (lists, scatterplots, etc) • Allow the user to interact with both the graph and the secondary visualizations

  42. PNNL’s Graph Vis • Graph “Signature” Wong TVCG 06

  43. Graph Signature

  44. Graph Signature

  45. Graphs as Maps http://www2.research.att.com/~yifanhu/MAPS/imap.html

  46. Matrix Representation • An obvious alternative visualization of graphs is a matrix… GhoniemInfoVis 04

  47. Matrix Representation How does one read a Matrix visualization? Importance of sorting… Henry InfoVis 06

More Related