edu.iu.iv.modeling.p2p.randomnetwork
Class RandomNetwork

java.lang.Object
  |
  +--edu.iu.iv.modeling.p2p.randomnetwork.RandomNetwork

public class RandomNetwork
extends java.lang.Object

Generates Erdos-Renyi Random Graph

Author:
Hardik Sheth (hsheth@indiana.edu)

Constructor Summary
RandomNetwork(int size, double probability)
           
 
Method Summary
 void buildRandomNetwork()
           
 float getAvgDegree()
          Get average degree of the network
 edu.uci.ics.jung.graph.Graph getGraph()
           
 int getMaxDegree()
          Get max degree of the network
 int getMinDegree()
          Get min degree of the network
 double getWiringProbability()
           
 void printNetwork()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomNetwork

public RandomNetwork(int size,
                     double probability)
Method Detail

buildRandomNetwork

public void buildRandomNetwork()

getGraph

public edu.uci.ics.jung.graph.Graph getGraph()

getWiringProbability

public double getWiringProbability()
Returns:
connection probability

printNetwork

public void printNetwork()

getAvgDegree

public float getAvgDegree()
Get average degree of the network

Returns:
average degree

getMaxDegree

public int getMaxDegree()
Get max degree of the network

Returns:
max degree

getMinDegree

public int getMinDegree()
Get min degree of the network

Returns:
min degree