edu.iu.iv.visualization.networks.jungfruchtermanrheingoldLayout
Class JUNGFruchtermanRheingoldLayoutAlgorithm

java.lang.Object
  |
  +--edu.iu.iv.visualization.networks.jungfruchtermanrheingoldLayout.JUNGFruchtermanRheingoldLayoutAlgorithm
All Implemented Interfaces:
Algorithm

public class JUNGFruchtermanRheingoldLayoutAlgorithm
extends java.lang.Object
implements Algorithm

Wrapper for P2PFRLayout program

Author:
Hardik Sheth (hsheth@indiana.edu)

Constructor Summary
JUNGFruchtermanRheingoldLayoutAlgorithm(edu.uci.ics.jung.graph.Graph g)
          Constructor.
 
Method Summary
 boolean execute()
          Runs the algorithm.
 edu.uci.ics.jung.graph.Graph getGraph()
          Get the network graph
 void setGraph(edu.uci.ics.jung.graph.Graph graph)
          Set the network graph to be visualized
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUNGFruchtermanRheingoldLayoutAlgorithm

public JUNGFruchtermanRheingoldLayoutAlgorithm(edu.uci.ics.jung.graph.Graph g)
Constructor. Set the graph to visualize

Method Detail

execute

public boolean execute()
Description copied from interface: Algorithm
Runs the algorithm.

Specified by:
execute in interface Algorithm
Returns:
true if the algorithm ran successfully, false otherwise.
See Also:
Algorithm.execute()

setGraph

public void setGraph(edu.uci.ics.jung.graph.Graph graph)
Set the network graph to be visualized

Parameters:
graph -

getGraph

public edu.uci.ics.jung.graph.Graph getGraph()
Get the network graph

Returns:
graph