peersim.dynamics
Class WireScaleFreeBA

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

public class WireScaleFreeBA
extends WireGraph

This class contains the implementation of the Barabasi-Albert model of growing scale free networks. The original model is described in http://arxiv.org/abs/cond-mat/0106096. It also contains the option of building a directed network, in which case the model is a variation of the BA model described in http://arxiv.org/pdf/cond-mat/0408391. In both cases, the number of the initial set of nodes is the same as the degree parameter, and no links are added. The first added node is connected to all of the initial nodes, and after that the BA model is used normally.

See Also:
GraphFactory.wireScaleFreeBA(peersim.graph.Graph, int, java.util.Random)

Parameter Summary
k
          The number of edges added to each new node (apart from those forming the initial network).
 
Field Summary
 
Fields inherited from class peersim.dynamics.WireGraph
g, pid, undir
 
Constructor Summary
WireScaleFreeBA(java.lang.String prefix)
          Standard constructor that reads the configuration parameters.
 
Method Summary
 void wire(Graph g)
          calls GraphFactory.wireScaleFreeBA(peersim.graph.Graph, int, java.util.Random).
 
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). Passed to GraphFactory.wireScaleFreeBA(peersim.graph.Graph, int, java.util.Random).

Constructor Detail

WireScaleFreeBA

public WireScaleFreeBA(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)
calls GraphFactory.wireScaleFreeBA(peersim.graph.Graph, int, java.util.Random).

Specified by:
wire in class WireGraph