Force Directed Algorithm Adel Alshayji 4/28/2005.

Slides:



Advertisements
Similar presentations
Section 2: Newton’s Law of Gravitation
Advertisements

Reactive and Potential Field Planners
Planar graphs Algorithms and Networks. Planar graphs2 Can be drawn on the plane without crossings Plane graph: planar graph, given together with an embedding.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
MRI Brain Extraction using a Graph Cut based Active Contour Model Noha Youssry El-Zehiry Noha Youssry El-Zehiry and Adel S. Elmaghraby Computer Engineering.
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Force-Directed Methods
The Mathematics of Force- Directed Placement Simulating Graphs as Physical Systems To Assist in Computer Chip Layout By Jamey Lewis, St. Michael’s College.
Activity relationship analysis
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.
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
Two Technique Papers on High Dimensionality Allan Rempel December 5, 2005.
Easy Optimization Problems, Relaxation, Local Processing for a single variable.
Graph Drawing Zsuzsanna Hollander. Reviewed Papers Effective Graph Visualization via Node Grouping Janet M. Six and Ioannis G. Tollis. Proc InfoVis 2001.
New Techniques for Visualisation of Large and Complex Networks with Directed Edges Tim Dwyer 1 Yehuda Koren 2 1 Monash University, Victoria, Australia.
A New Force-Directed Graph Drawing Method Based on Edge- Edge Repulsion Chun-Cheng Lin and Hsu-Chen Yen Department of Electrical Engineering, National.
Efficient Generation of Minimal Graphs Using Independent Path Analysis Linda S. Humphrey 20 November 2006 Department of Computer Science and Engineering.
Interconnect Estimation without Packing via ACG Floorplans Jia Wang and Hai Zhou Electrical & Computer Engineering Northwestern University U.S.A.
© University of Minnesota Data Mining for the Discovery of Ocean Climate Indices 1 CSci 8980: Data Mining (Fall 2002) Vipin Kumar Army High Performance.
HCS Clustering Algorithm
Nature’s Algorithms David C. Uhrig Tiffany Sharrard CS 477R – Fall 2007 Dr. George Bebis.
Prénom Nom Document Analysis: Data Analysis and Clustering Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
SIMS 247: Information Visualization and Presentation jeffrey heer
Force Directed Algorithm Adel Alshayji 4/28/2005.
1 Localization Technologies for Sensor Networks Craig Gotsman, Technion/Harvard Collaboration with: Yehuda Koren, AT&T Labs.
Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy.
ELECTRICITY PHY1013S ELECTRIC FIELDS Gregor Leigh
Clustering Unsupervised learning Generating “classes”
Domain decomposition in parallel computing Ashok Srinivasan Florida State University COT 5410 – Spring 2004.
A Survey on Graph Visualization 1 Presented by Yang Zhang Dave Fuhry.
1 IE 607 Heuristic Optimization Simulated Annealing.
Algorithms for drawing large graphs
Lecture 12: Network Visualization Slides are modified from Lada Adamic, Adam Perer, Ben Shneiderman, and Aleks Aris.
Cluster Analysis Part II. Learning Objectives Hierarchical Methods Density-Based Methods Grid-Based Methods Model-Based Clustering Methods Outlier Analysis.
New method to optimize Force-directed layouts of large graphs Meva DODO, Fenohery ANDRIAMANAMPISOA, Patrice TORGUET, Jean Pierre JESSEL IRIT University.
May 1, 2002Applied Discrete Mathematics Week 13: Graphs and Trees 1News CSEMS Scholarships for CS and Math students (US citizens only) $3,125 per year.
Representing and Using Graphs
New Modeling Techniques for the Global Routing Problem Anthony Vannelli Department of Electrical and Computer Engineering University of Waterloo Waterloo,
Clustering Spatial Data Using Random Walk David Harel and Yehuda Koren KDD 2001.
Boltzmann Machine (BM) (§6.4) Hopfield model + hidden nodes + simulated annealing BM Architecture –a set of visible nodes: nodes can be accessed from outside.
Force-Directed Placement Heuristics A Comparative Study.
Simulated Annealing.
Intelligent Database Systems Lab 國立雲林科技大學 National Yunlin University of Science and Technology Advisor : Dr. Hsu Presenter : Keng-Wei Chang Author: Yehuda.
I NTRODUCTION TO G RAPH DRAWING Fall 2010 Battista, G. D., Eades, P., Tamassia, R., and Tollis, I. G Graph Drawing: Algorithms for the Visualization.
Serge Andrianov Theory of Symplectic Formalism for Spin-Orbit Tracking Institute for Nuclear Physics Forschungszentrum Juelich Saint-Petersburg State University,
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M
CS270 Project Overview Maximum Planar Subgraph Danyel Fisher Jason Hong Greg Lawrence Jimmy Lin.
Visualizing LiveNet with ENCCON Model Quang Vinh Nguyen Computer Systems Department Faculty of Information Technology University of Technology, Sydney.
Electric Charge (1) Evidence for electric charges is everywhere, e.g.
An Introduction to Simulated Annealing Kevin Cannons November 24, 2005.
Sporadic model building for efficiency enhancement of the hierarchical BOA Genetic Programming and Evolvable Machines (2008) 9: Martin Pelikan, Kumara.
Example Apply hierarchical clustering with d min to below data where c=3. Nearest neighbor clustering d min d max will form elongated clusters!
Visualization of Biological Information with Circular Drawings.
1 Chapter-3 (Electric Potential) Electric Potential: The electrical state for which flow of charge between two charged bodies takes place is called electric.
Electric Fields Why electric charges can reach out and touch you.
I NTRODUCTION TO G RAPH DRAWING Fall 2010 Battista, G. D., Eades, P., Tamassia, R., and Tollis, I. G Graph Drawing: Algorithms for the Visualization.
All-to-All Pattern A pattern where all (slave) processes can communicate with each other Somewhat the worst case scenario! 1 ITCS 4/5145 Parallel Computing,
Graphical Presentation of Mobile networks
Algorithms and Networks
Force between Two Point Charges
Shortest Path Problems
CS 1321.
CS475 3D Game Development Level Of Detail Nodes (LOD)
SDE: Graph Drawing Using Spectral Distance Embedding
Using Multilevel Force-Directed Algorithm to Draw Large Clustered Graph 研究生: 何明彥 指導老師:顏嗣鈞 教授 2018/12/4 NTUEE.
Challenges in Visualizing Knowledge and Metadata
All-to-All Pattern A pattern where all (slave) processes can communicate with each other Somewhat the worst case scenario! ITCS 4/5145 Parallel Computing,
Scale-Space Representation for Matching of 3D Models
Boltzmann Machine (BM) (§6.4)
Presentation transcript:

Force Directed Algorithm Adel Alshayji 4/28/2005

2 What is FD Algorithm? Force directed algorithms used to represents graphs. Force directed algorithms view the graph as a virtual physical system. The nodes of the graph are bodies of the system. These bodies have forces acting on or between them. These forces are physics-based, and therefore have a natural analogy, such as magnetic repulsion or gravitational attraction.

3 What is for? The force directed layout use force directed algorithms for drawing large graphs. In any graph, the edges can be modeled as gravitational attraction and all nodes have an electrical repulsion between them. It is also possible for the system to simulate unnatural forces acting on the bodies, which have no direct physical analogy, for example the use of a logarithmic distance measure.

4 Force Calculation Cells are connected by a net of forces. The force magnitude between each two nodes is proportional to the distance separating them. By using Hooke’s law, forces around each node is computed and then equilibrium state is sought. New values for the node position is computed and the whole net of nodes is rearranged. 5 i

5 How this Algorithm Work? Regardless of the exact nature of the forces in the virtual physical system, force directed algorithms. Compute a locally minimum energy layout of the nodes. This is usually achieved by computing the forces on each node and iterating the system in discrete time steps. The forces are applied to each node and the positions are updated accordingly.

6 FD Graph Drawing Which layout is nicer? An energy model is associated with the graph layouts. Low energy states correspond to nice layouts. Energy: 1.77x Energy: 2.23x10 6 By [Yehuda Koren]

7 Layout Energy FD Graph Drawing (cont.) Graph drawing = Energy minimization Hence, the drawing algorithm is an iterative optimization process Initial (random) layoutFinal (nice) layoutIteration 1:Iteration 2:Iteration 3:Iteration 4:Iteration 5:Iteration 6:Iteration 7:Iteration 8:Iteration 9: Convergence to global minimum is not guaranteed!

8 This graph has Aesthetical properties Proximity preservation: similar nodes are drawn closely Symmetry preservation: isomorphic sub-graphs are drawn identically No external influences: “Let the graph speak for itself” FD Graph Drawing (cont.)

9 Example 1 A graph drawing through a number of iterations of a force directed algorithm.

10 Example 2 This series of images show a graph drawing from a random layout to the final aesthetically pleasant drawing of the graph.

11 Scaling with Large Graphs Traditional force-directed methods are limited to a few hundred nodes Problems when drawing large graphs: – Visualization issue: not enough drawing area Cures: dynamic navigation, clustering, fish- eye view, hyperbolic space,… – Algorithmic issue: convergence to a nice layout is too slow We concentrate on the algorithmic issue, i.e., the computational complexity (mainly time).

12 Complexity Complexity per single iteration is O(n2) – Energy contains at least one term for each node pair (repulsive forces) Estimated number of iterations to convergence is O(n) Overall time complexity is ~ O(n3) Force directed methods do not scale up well to large graphs!

13 Limitation Force-directed algorithms are often used in graph drawing due to their flexibility, ease of implementation, and the aesthetically pleasant drawings they produce. However, classical force directed algorithms are unable to handle larger graphs due the inherent N squared cost at each time step. Where N is the number of bodies in the system. The FADE layout paradigm, overcomes this computational limitation to allow large graphs to be drawn and abstractly represented.

14 What is FADE Paradigm? In the FADE paradigm, we take the graph layout and perform a geometric clustering (typically by recursive space decomposition) of the locations of the nodes. This process, along with implied edge creation, forms a hierarchical compound graph.

15 How it is Work? Compute Initial Layout REPEAT Compute Edge Forces Construct Geometric Clustering FOR each node V Compute Approximate Non-edga Forces on V END FOR Move Nodes Update Bounding Area/Volume UNTIL Stopping Condition END

16 The performance improvement in the FADE paradigm comes from : Compute forces using recursive decomposition for the locations of the nodes, rather than using all the nodes directly. Different decompositions generate recursive geometric clustering of the nodes of the graph. The recursive clustering does facilitate a dramatic improvement in the performance of force directed algorithms. Performance Improvement

17 Performance Improvement (cont.) It allows for multi-level viewing of huge graphs at various levels of abstraction. As the quality of the drawing improves, the quality of clustering, exhibited by the decomposition tree, improves to a reasonable amount. This clustering helps in visual abstraction, when it has sufficient quality.

18 Spring Embedder Replace edges with springs (zero rest length) --- attractive forces Replace vertices with electrically charged particles, repelling each other --- repulsive forces Start with a random placement of the vertices, then just let the system go until it reaches equilibrium. Example of F.D. Method

19 [Kaufmann and Wagner, 2001] Example of Spring Method

20 Animated Example By, [Aaron J. Quigley]

21 Example in 3D [Carmel,Harel,Koren’02] ACE

22 Where FD Algorithm Fit? Force directed methods and large graphs Multi-scale acceleration of force directed methods Hall’s graph drawing method (a particular force-directed method) ACE: a multi-scale acceleration of Hall’s method High dimensional embedding: a new approach to graph drawing Hall No. of nodes drawn in a minute. Multi-scale High Embedding Force directedACE By [Yehuda Koren]

23 Conclusion Force-directed algorithms are used in graph drawing with limited number of nodes. It simplifies graph layout so the graph become simple to understand and use. It is unable to handle larger graphs due the inherent O(N 2 ) cost at each time step. FADE Paradigm, works better with graph drawing and improve algorithm performance. For higher number of nodes, Multi-scale, Hall, High Embedding, and ACE algorithm work better than Force Directed Algorithm.

24 References Dr. Aaron John Quigley, College Lecturer,Department of Computer Science, University College Dublin, Ireland. Yehuda Koren, The Weizmann Institute of Science. Andrew Kennings, Electrical and Computer Engineering, University of Waterloo. Sait, Sadiq M., VLSI physical design automation: theory and practice.

25 Thank You This animation produced by, [Aaron J. Quigley] `