Title: Graphs and Networks
1Graphs and Networks
- CS 7450 - Information Visualization
- March 1, 2005
- John Stasko
2Connections
- Spences chapter 8 is called Connectivity
- Connections throughout our lives and the world
- Circle of friends
- Deltas flight plans
-
- Model connected set as a Graph
3What is a Graph?
- Vertices (nodes)connected by
- Edges (links)
Adjacency list
1 2 2 1, 3 3 2
1 2 3 0 1 0 1 0 1 0 1 0
1
1 2 3
2
3
Drawing
Adjacency matrix
4Graph Terminology
- Graphs can have cycles
- Graph edges can be directed or undirected
- The degree of a vertex is the number of edges
connected to it - In-degree and out-degree for directed graphs
- Graph edges can have values (weights) on them
(nominal, ordinal or quantitative)
5Trees are Different
- Subcase of general graph
- No cycles
- Typically directed edges
- Special designated root vertex
6Graph Uses
- In information visualization, any number of data
sets can be modeled as a graph - US telephone system
- World Wide Web
- Distribution network for on-line retailer
- Call graph of a large software system
- Semantic map in an AI algorithm
7Graph Visualization Problems
- Graph layout and positioning
- Make a concrete rendering of abstract graph
- Scale
- Not too much of a problem for small graphs, but
large ones are much tougher - Navigation
- How to support user changing focus and moving
around the graph
8Layout Algorithms
- Entire research communitys focus
- Good references
- Tutorial (talk slides)www.cs.brown.edu/people/rt/
papers/gd-tutorial/gd-constraints.pdf - G. diBattista, P. Eades, R. Tamassia, and I.
Tollis, Graph Drawing Algorithms for the
Visualization of Graphs, Prentice Hall, 1999. - Article by Herman et al
9Vertex Issues
- Shape
- Color
- Size
- Location
- Label
10General GD Information
- Good web links
- www.cs.brown.edu/people/rt/gd.html
- www.research.att.com/sw/tools/graphviz/
- rw4.cs.uni-sb.de/users/sander/html/gstools.html
11Edge Issues
- Color
- Size
- Label
- Form
- Polyline, straight line, orthogonal, grid,
curved, planar, upward/downward, ...
12Aesthetic Considerations
- Crossings -- minimize towards planar
- Total Edge Length -- minimize towards proper
scale - Area -- minimize towards efficiency
- Maximum Edge Length -- minimize longest edge
- Uniform Edge Lengths -- minimize variances
- Total Bends -- minimize orthogonal towards
straight-line
13Layout Heuristics
- Layout algorithms can be
- planar
- grid-based
- orthogonal
- curved lines
- hierarchies
- circular
- ...
14Scale Challenge
- May run out of space for vertices and edges
(turns into ball of string) - Can really slow down algorithm
- Often use clustering to help
- Extract highly connected sets of vertices
- Collapse some vertices together
15Layout Examples
- Homework assignment
- Lets judge!
16Layout Examples
- Cool java applethttp//java.sun.com/applets/jdk/1
.2/demo/applets/GraphLayout/example1.html - Examples of dynamic graph layout algorithms
17Graph Uses
- Facilitate understanding of complex
socio-economic patterns - Social Science visualization gallery (Lothar
Krempel) - http//www.mpi-fg-koeln.mpg.de/lk/netvis.html
- Next slides Krempel Plumpers study of World
Trade between OECD countries, 1981 and 1992
181981
http//www.mpi-fg-koeln.mpg.de/lk/netvis/trade/Wo
rldTrade.html
191992
20Graph Uses
- Facilitate understanding of network flows,
relations - Even information with a geographical content
can best appear as a network rail maps
21(No Transcript)
22(No Transcript)
23(No Transcript)
243 Subway Diagrams
- Geographic landmarks largely suppressed on maps,
except water (rivers in Paris, London) and
asphalt (highways in Atlanta) - Rather fitting, no?
- These are more graphs than maps!
25Social Network Visualization
- Social Network Analysis (Linton Freeman)
- http//www.sfu.ca/insna
26People connections
Charles Isbell, Cobot
27Case Study
- SeeNet
- Visualizing network data (phone traffic)R.
Becker, S. Eick and A. WilksATT
28Domain
- ATT long distance phone network
- 110 Nodes (switches)
- Geographical location
- Connected by 12,000 links
- Directed, almost completely connected
- Data every 5 minutes
- EARTHQUAKE!!!
- Oct. 17, 1989
29Questions
- Where are the overloads?
- Which links are carrying most traffic?
- Was there network damage?
- Is there underutilized capacity?
- Are calls getting in to affected area or are
there bottlenecks? - Is overload increasing or decreasing?
30Edge Drawing Strategies
116
Label
Thickness
Color
116
Directed
29
31Problems
- Too many lines!
- Occlusion
- Long lines become more important
- Cant see what happens in Midwest
- Solutions
- Use half/half technique out/out
- Draw most important last
- Use thickness color for traffic
32Earthquake data
33More Help
- Shorten all lines so as to de-emphasize
transcontinental links
34(No Transcript)
35Other Applications
- Email
- How would you visualize all email traffic in CoC
between pairs of people? - Solutions???
36Solutions
- Put everyone on circle, lines between
- Color or thicken line to indicate magnitude
- Use spring/tension model
- People who send a lot to each other are drawn
close together - Shows clusters of communications
37More Email
- How about visualizing internet traffic?
38Byte traffic into the ANS/NSFnet T3 backbone for
the month of November, 1993
http//www.ncsa.uiuc.edu/SCMS/DigLib/text/technolo
gy/Visualization-Study-NSFNET-Cox.html
39Inbound traffic measured in billions of bytes on
the NSFNET T1 backbone for September 1991
40Linux kernel
http//perso.wanadoo.fr/pascal.brisset/kernel3d/ke
rnel3d.html
41TouchGraph
www.touchgraph.com
42Focus of Graph
- Particular node may be focus, often placed in
center for circular layout - How does one build an interactive system that
allows changes in focus? - Use animation
- Intuition about changes not always right
43Focus Change Animation
Straight linear interpolation of focus changes
not as appealing as changes along polar
coordinates
Yee, Fisher, Dhamija, Hearst InfoVis 01
Video
44Radial Display
- Can we combine some of the properties of the
hyperbolic graphs without the hyperbolic
distortion? - Still use a radial technique with root/focus at
center
45MoireGraphs
- Visual nodes (ie, images)
- Smooth interactions
- Multiple foci
- Versatile
Jankun-Kelly Ma InfoVis 03
Video
46Case Study
- NicheWorks
- Interactive Visualization of Very Large Graphs
Graham WillsLucent
47Big Graphs
- 20,000 - 1,000,000 Nodes
- Works well with 50,000
- Projects
- Software Engineering
- Web site analysis
- Large database correlation
- Telephone fraud detection
48Features
- Typical interactive operations
- Sophisticated graph layout algorithm
- 3 Layouts
- Circular
- Hexagonal
- Tree
- 3 Incremental Algorithms
- Steepest Descent
- Swapping
- Repelling
49Interface Web Site Example
Hexagonal layout
Tree layout
Circle layout
50Interface
51Interface
52Interface Fraud Example
40,000 calls 35,000 callers
53Interface Fraud Example
54More Neat Stuff
- http//willsfamily.org/gwills/
- Lots of interesting application areas
- More details on NicheWorks
55More Resources
- Network visualization resources
- http//www.caida.org/projects/internetatlas/viz/
- Good article on graph layout
- http//www.csi.uottawa.ca/ordal/papers/sander/main
.html
56More to Come...
- Topic of WWW/InfoSphere (next) will touch on
graphs and networks too - Lots of example visualizations
57HW6
- Work with two hierarchy visualizers SequoiaView
and Grokker - Understand and critique visualizations and user
interfaces - Shorter evaluation lt5 pages
58Upcoming
- WWW/Internet visualization
- Reading
- Chi et al
- Hierarchies Trees
59References
- Spence and CMS texts
- All referred to papers and web sites
- Dagon and Leahy, F 99 slides
60Graph Uses
- Track flows and movements of individuals in
society - Next slides Krempels map of Duisburg zoo
visitors - Physical coordinates yields ball of string
merely reflecting the autobahn division of zoo - Gravity solution to graph shows flow
61http//www.mpi-fg-koeln.mpg.de/lk/netvis/zoo1.htm
l
62(No Transcript)