|
||||||||||
| 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.CheegerConstantBruteForce<V,E>
public class CheegerConstantBruteForce<V,E>
XXX Computes ........... Descripcion temporal. ... Isoperimetric constant. Esencia: Dado un grafo G y un subrafo H de tamanho m, encontrar cuantos enlaces de los elementos en H apuntan hacia nodos que no estan en H (es decir, cuantos "puentes" aportan al exterior). A partir de esto se puede calcular la media del aporte por nodo, por ejemplo.
| Constructor Summary | |
|---|---|
CheegerConstantBruteForce()
Default constructor. |
|
CheegerConstantBruteForce(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. |
java.lang.Object[] |
getEnvParams()
Returns the environment parameters used by this class. |
double |
getGraphMetric()
Returns the network diameter. |
java.lang.String |
getLabel()
Returns the string "Cheeger constant (brute force)". |
double |
getMeanCheeger()
Returns mean (|EDGES(S, ~S)| / |S|) |
boolean |
isApplicableTo(MetricTarget m)
Returns true if m is MetricTarget.GRAPH. |
void |
run()
Default implementation. |
void |
run(int m)
|
void |
setup(SimGraph<V,E> g,
Environ env)
Makes sure all links in the topology are bi-directional. |
| 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 |
| Methods inherited from interface bcds.phison.WithEnvParams |
|---|
getEnviron, getName |
| Constructor Detail |
|---|
public CheegerConstantBruteForce()
public CheegerConstantBruteForce(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 GraphMetricBase<V,E>
public void setup(SimGraph<V,E> g,
Environ env)
setup in interface GraphMetric<V,E>setup in class GraphMetricBase<V,E>java.lang.IllegalArgumentException - if there a exists a link with
only one direction.public void run()
GraphMetricBase
run in interface GraphMetric<V,E>run in class GraphMetricBase<V,E>public void run(int m)
m - the subgroup size.public double getGraphMetric()
getGraphMetric in interface GraphMetric<V,E>getGraphMetric in class GraphMetricBase<V,E>public double getMeanCheeger()
public java.lang.String getLabel()
getLabel in interface GraphMetric<V,E>public java.lang.String getDescription()
GraphMetric
getDescription in interface GraphMetric<V,E>public java.lang.Object[] getEnvParams()
subset_size (default: 1): The size of
the subsets to generate. Must be in the range
[1..floor(|V|/2)].
verbose (default: false): Prints each subset
and the number of "bridges" it has to the rest of the nodes.
getEnvParams in interface WithEnvParamsgetEnvParams in class GraphMetricBase<V,E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||