peersim.dynamics
Class WireScaleFreeDM

java.lang.Object
  extended by peersim.dynamics.WireGraph
      extended by peersim.dynamics.WireScaleFreeDM
All Implemented Interfaces:
Control

public class WireScaleFreeDM
extends WireGraph

Wires a scale free graph using a method described in this paper. It is an incremental technique, where the new nodes are connected to the two ends of an edge that is already in the network. This model always wires undirected links.


Parameter Summary
k
          The number of edges added to each new node (apart from those forming the initial network) is twice this value.
 
Field Summary
 
Fields inherited from class peersim.dynamics.WireGraph
g, pid, undir
 
Constructor Summary
WireScaleFreeDM(java.lang.String prefix)
          Standard constructor that reads the configuration parameters.
 
Method Summary
 void wire(Graph g)
          Wires a scale free graph using a method described in this paper.
 
Methods inherited from class peersim.dynamics.WireGraph
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Parameter Detail

k

The number of edges added to each new node (apart from those forming the initial network) is twice this value.

Constructor Detail

WireScaleFreeDM

public WireScaleFreeDM(java.lang.String prefix)
Standard constructor that reads the configuration parameters. Invoked by the simulation engine.

Parameters:
prefix - the configuration prefix for this class
Method Detail

wire

public void wire(Graph g)
Wires a scale free graph using a method described in this paper. It is an incremental technique, where the new nodes are connected to the two ends of an edge that is already in the network. This model always wires undirected links.

Specified by:
wire in class WireGraph