|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeersim.dynamics.WireGraph
peersim.dynamics.WireKOut
public class WireKOut
Takes a Linkable
protocol and adds random connections. Note that no
connections are removed, they are only added. So it can be used in
combination with other initializers.
GraphFactory.wireKOut(peersim.graph.Graph, int, java.util.Random)
Parameter Summary | |
---|---|
k
The number of outgoing edges to generate from each node. |
Field Summary |
---|
Fields inherited from class peersim.dynamics.WireGraph |
---|
g, pid, undir |
Constructor Summary | |
---|---|
WireKOut(java.lang.String prefix)
Standard constructor that reads the configuration parameters. |
Method Summary | |
---|---|
void |
wire(Graph g)
Calls GraphFactory.wireKOut(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.wireKOut(peersim.graph.Graph, int, java.util.Random)
.
No loop edges are generated.
In the undirected case, the degree
of nodes will be on average almost twice as much because the incoming links
also become links out of each node.
Constructor Detail |
---|
public WireKOut(java.lang.String prefix)
prefix
- the configuration prefix for this classMethod Detail |
---|
public void wire(Graph g)
GraphFactory.wireKOut(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 |