|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object peersim.reports.GraphObserver peersim.reports.GraphStats
public class GraphStats
Prints reports on the graph like average clustering and average path length,
based on random sampling of the nodes.
In fact its functionality is a subset of the union of Clustering
and BallExpansion
, and therefore is redundant,
but it is there for historical reasons.
BallExpansion
,
Clustering
Parameter Summary | |
---|---|
nl
The number of nodes to use for sampling average path length. |
|
nc
The number of nodes to use to sample average clustering. |
Parameters inherited from class peersim.reports.GraphObserver |
---|
undir |
Field Summary |
---|
Fields inherited from class peersim.reports.GraphObserver |
---|
g, ga, name, pid, undir |
Constructor Summary | |
---|---|
GraphStats(java.lang.String name)
Standard constructor that reads the configuration parameters. |
Method Summary | |
---|---|
boolean |
execute()
Returns statistics over minimal path length and clustering. |
Methods inherited from class peersim.reports.GraphObserver |
---|
updateGraph |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parameter Detail |
---|
nl
nc
Constructor Detail |
---|
public GraphStats(java.lang.String name)
name
- the configuration prefix for this classMethod Detail |
---|
public boolean execute()
BallExpansion
,
Clustering
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |