|
||||||||||
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.BrandesBC<V,E>
bcds.phison.gm.AverageNodeBC<V,E>
public class AverageNodeBC<V,E>
Computes the average node betweenness centrality of a directed graph.
Note: in order to consider the graph as weighted the environment must contain:
BrandesBC.weighted=true
Constructor Summary | |
---|---|
AverageNodeBC()
Default constructor. |
|
AverageNodeBC(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 node betweenness centrality. |
double |
getGraphMetricStdev()
Returns the standard deviation of the average node betweenness centrality. |
java.lang.String |
getLabel()
Returns "Average node betweenness centrality". |
boolean |
isApplicableTo(MetricTarget m)
Returns true if m is
MetricTarget .GRAPH. |
void |
run()
Computes the betweenness centrality. |
Methods inherited from class bcds.phison.gm.BrandesBC |
---|
getEdgeMetric, getEnvParams, getNodeMetric, setup |
Methods inherited from class bcds.phison.gm.GraphMetricBase |
---|
dump, getEnviron, getGraph, getName |
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 AverageNodeBC()
public AverageNodeBC(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 BrandesBC<V,E>
public void run()
run
in interface GraphMetric<V,E>
run
in class BrandesBC<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>
getLabel
in class BrandesBC<V,E>
public java.lang.String getDescription()
GraphMetric
getDescription
in interface GraphMetric<V,E>
getDescription
in class BrandesBC<V,E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |