|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeersim.dynamics.WireGraph
peersim.dynamics.WireScaleFreeBA
public class WireScaleFreeBA
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.
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
GraphFactory.wireScaleFreeBA(peersim.graph.Graph, int, java.util.Random)
.
Constructor Detail |
---|
public WireScaleFreeBA(java.lang.String prefix)
prefix
- the configuration prefix for this classMethod Detail |
---|
public void wire(Graph g)
GraphFactory.wireScaleFreeBA(peersim.graph.Graph, int, java.util.Random)
.
wire
in class WireGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |