|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpeersim.dynamics.WireGraph
peersim.dynamics.WireWS
public class WireWS
Takes a Linkable protocol and adds connections following the
small-world model of Watts and Strogatz. Note that no
connections are removed, they are only added. So it can be used in
combination with other initializers.
GraphFactory.wireWS(peersim.graph.Graph, int, double, java.util.Random)| Parameter Summary | |
|---|---|
beta
The beta parameter of a Watts-Strogatz graph represents the probability for a node to be re-wired. |
|
k
The degree of the graph. |
|
| Field Summary |
|---|
| Fields inherited from class peersim.dynamics.WireGraph |
|---|
g, pid, undir |
| Constructor Summary | |
|---|---|
WireWS(java.lang.String prefix)
Standard constructor that reads the configuration parameters. |
|
| Method Summary | |
|---|---|
void |
wire(Graph g)
calls GraphFactory.wireWS(peersim.graph.Graph, int, double, 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 |
|---|
betaGraphFactory.wireWS(peersim.graph.Graph, int, double, java.util.Random).
kGraphFactory.wireRingLattice(peersim.graph.Graph, int).
Passed to GraphFactory.wireWS(peersim.graph.Graph, int, double, java.util.Random).
| Constructor Detail |
|---|
public WireWS(java.lang.String prefix)
prefix - the configuration prefix for this class| Method Detail |
|---|
public void wire(Graph g)
GraphFactory.wireWS(peersim.graph.Graph, int, double, java.util.Random).
wire in class WireGraph
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||