edu.iu.iv.visualization.p2p.p2pnetworkvisualization
Class P2PNetworkVisualization

java.lang.Object
  |
  +--edu.iu.iv.visualization.p2p.p2pnetworkvisualization.P2PNetworkVisualization

public class P2PNetworkVisualization
extends java.lang.Object

This program visualizes various P2P Network Models Layouts provided - SpringLayout, Fruchterman-Reingold, Kamada-Kawai, Circle Layout

Author:
Hardik Sheth (hsheth@indiana.edu)

Constructor Summary
P2PNetworkVisualization(edu.uci.ics.jung.graph.Graph g, java.lang.String title)
          Constructor.
 
Method Summary
 boolean drawGraph()
          Visualize the network graph
static edu.uci.ics.jung.graph.Graph getGraph()
          Get the network graph
 java.lang.String getTitle()
          Get the title of the network graph
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

P2PNetworkVisualization

public P2PNetworkVisualization(edu.uci.ics.jung.graph.Graph g,
                               java.lang.String title)
Constructor. Set the graph to visualize and its title

Method Detail

drawGraph

public boolean drawGraph()
Visualize the network graph


getGraph

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

Returns:
graph

getTitle

public java.lang.String getTitle()
Get the title of the network graph

Returns:
title