|
||||||||||
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.Diameter<V,E>
bcds.phison.gm.SymmetryRatio<V,E>
public class SymmetryRatio<V,E>
Computes the symmetry ratio of a topology as a
GraphMetric
. Symmetry ratio is calculated as:
\frac{Number of distinct eigenvalues}{Diameter+1}
Reference: A. H. Dekker and B. Colbert, "The symmetry ratio of a network," in Proceedings of the 2005 Australasian symposium on Theory of computing - Volume 41, ser. CATS ’05. Darlinghurst, Australia, Australia: Australian Computer Society, Inc., 2005, pp. 13–20.
Constructor Summary | |
---|---|
SymmetryRatio()
Default constructor. |
|
SymmetryRatio(SimGraph<V,E> g,
Environ env)
Creates a new instance and calls setup to complete the initialization. |
Method Summary | |
---|---|
org.jblas.FloatMatrix |
createAdjacencyMatrix()
Creates the adjacency matrix of the graph |
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 symmetry ratio of the topology. |
java.lang.String |
getLabel()
Returns "Symmetry ratio". |
boolean |
isApplicableTo(MetricTarget m)
Returns true if m is MetricTarget.GRAPH . |
Methods inherited from class bcds.phison.gm.Diameter |
---|
getAvgShortestPath, getAvgShortestPathStdev, getEnvParams, getLongestPath, run, setup |
Methods inherited from class bcds.phison.gm.GraphMetricBase |
---|
dump, getEdgeMetric, getEnviron, getGraph, getGraphMetricStdev, getName, getNodeMetric |
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, getGraphMetricStdev, getNodeMetric, run, setup |
Methods inherited from interface bcds.phison.WithEnvParams |
---|
getEnviron, getEnvParams, getName |
Constructor Detail |
---|
public SymmetryRatio()
public SymmetryRatio(SimGraph<V,E> g, Environ env)
Method Detail |
---|
public boolean isApplicableTo(MetricTarget m)
m
is MetricTarget.GRAPH
.
isApplicableTo
in interface GraphMetric<V,E>
isApplicableTo
in class Diameter<V,E>
public double getGraphMetric()
getGraphMetric
in interface GraphMetric<V,E>
getGraphMetric
in class Diameter<V,E>
public org.jblas.FloatMatrix createAdjacencyMatrix()
public java.lang.String getLabel()
getLabel
in interface GraphMetric<V,E>
getLabel
in class Diameter<V,E>
public java.lang.String getDescription()
GraphMetric
getDescription
in interface GraphMetric<V,E>
getDescription
in class Diameter<V,E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |