|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbcds.phison.gm.GraphMetricBase<V,E>
bcds.phison.gm.AverageNeighborConnectivity<V,E>
public class AverageNeighborConnectivity<V,E>
Computes the average neighbor connectivity of a topology as a
GraphMetric
.
The average neighbor connectivity provides information about 1-hop neighborhoods around a node. It is a summary statistic of the Joint Degree Distribution (JDD) and it is calculated as the average neighbor degree of the average k-degree node.
Additionally, it provides the JDD although that functionality is not accessible through the GraphMetric interface.
Reference: P. Mahadevan, D. Krioukov, M. Fomenkov, X. Dimitropoulos, k. c. claffy, and A. Vahdat, "The internet as-level topology: three data sources and one definitive metric," SIGCOMM Comput. Commun. Rev., vol. 36, pp. 17–26, January 2006.
Constructor Summary | |
---|---|
AverageNeighborConnectivity()
Default constructor. |
|
AverageNeighborConnectivity(SimGraph<V,E> g,
Environ env)
Creates a new instance and calls setup to complete the initialization. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns a string describing the metric, for example, article where it has been published, URL where to find reference implementation, etc. |
double |
getGraphMetric()
Returns the average neighbor connectivity. |
double |
getGraphMetricStdev()
Returns the standard deviation of the average neighbor connectivity. |
java.lang.String |
getLabel()
Returns the string "Avg. neighbor connectivity". |
boolean |
isApplicableTo(MetricTarget m)
Returns true if m is
MetricTarget .GRAPH or NODE. |
double[][] |
JDD()
This method computes the joint degree distribution: The probability, that a randomly selected edge connects k_1 and k_2 degree nodes. |
void |
run()
Performs the computation of the average neighbor connectivity. |
Methods inherited from class bcds.phison.gm.GraphMetricBase |
---|
dump, getEdgeMetric, getEnviron, getEnvParams, getGraph, getName, getNodeMetric, setup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bcds.phison.gm.GraphMetric |
---|
dump, getEdgeMetric, getNodeMetric, setup |
Methods inherited from interface bcds.phison.WithEnvParams |
---|
getEnviron, getEnvParams, getName |
Constructor Detail |
---|
public AverageNeighborConnectivity()
public AverageNeighborConnectivity(SimGraph<V,E> g, Environ env)
Method Detail |
---|
public boolean isApplicableTo(MetricTarget m)
m
is
MetricTarget
.GRAPH or NODE.
isApplicableTo
in interface GraphMetric<V,E>
isApplicableTo
in class GraphMetricBase<V,E>
public void run()
run
in interface GraphMetric<V,E>
run
in class GraphMetricBase<V,E>
public double getGraphMetric()
getGraphMetric
in interface GraphMetric<V,E>
getGraphMetric
in class GraphMetricBase<V,E>
public double getGraphMetricStdev()
getGraphMetricStdev
in interface GraphMetric<V,E>
getGraphMetricStdev
in class GraphMetricBase<V,E>
public java.lang.String getLabel()
getLabel
in interface GraphMetric<V,E>
public java.lang.String getDescription()
GraphMetric
getDescription
in interface GraphMetric<V,E>
public double[][] JDD()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |