|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javanetworkanalyzer.analyzers.GeneralizedGraphAnalyzer<V,E>
org.javanetworkanalyzer.analyzers.GraphAnalyzer<V,E,S>
public abstract class GraphAnalyzer<V extends VCent,E extends EdgeCent,S extends PathLengthData>
Calculates various centrality measures on the given graph, assumed to be connected.
| Field Summary | |
|---|---|
protected ProgressMonitor |
pm
Progress monitor. |
protected Stack<V> |
stack
|
| Fields inherited from class org.javanetworkanalyzer.analyzers.GeneralizedGraphAnalyzer |
|---|
graph, nodeCount, nodeSet |
| Constructor Summary | |
|---|---|
GraphAnalyzer(org.jgrapht.Graph<V,E> graph,
Class<? extends S> pathClass)
Initializes a new instance of a graph analyzer that doesn't keep track of progress. |
|
GraphAnalyzer(org.jgrapht.Graph<V,E> graph,
ProgressMonitor pm)
Initializes a new instance of a graph analyzer with the given ProgressMonitor. |
|
| Method Summary | |
|---|---|
protected void |
calculateClosenessForNode(V node,
S paths)
Given a node and its path length data calculated in #calculateCentralityMeasures(int), this method calculates its
closeness centrality (or "out" closeness centrality for digraphs). |
protected abstract CentralityAlg<V,E,S> |
calculateShortestPathsFromNode(V startNode)
Stores number of shortest paths and the length of these paths from startNode to every other node in the V of every other node; also
updates the predecessor sets. |
void |
computeAll()
Performs graph analysis and stores the results in a hash map, mapping each node to a data structure holding the results of the analysis. |
| Methods inherited from class org.javanetworkanalyzer.analyzers.GeneralizedGraphAnalyzer |
|---|
getGraph |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ProgressMonitor pm
protected final Stack<V extends VCent> stack
| Constructor Detail |
|---|
public GraphAnalyzer(org.jgrapht.Graph<V,E> graph,
ProgressMonitor pm)
throws NoSuchMethodException,
InstantiationException,
IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
ProgressMonitor.
graph - The graph to be analyzed.pm - The ProgressMonitor to be used.
NoSuchMethodException
InstantiationException
IllegalAccessException
IllegalArgumentException
InvocationTargetException
public GraphAnalyzer(org.jgrapht.Graph<V,E> graph,
Class<? extends S> pathClass)
throws NoSuchMethodException,
InstantiationException,
IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
graph - The graph to be analyzed.
NoSuchMethodException
InstantiationException
IllegalAccessException
IllegalArgumentException
InvocationTargetException| Method Detail |
|---|
public void computeAll()
throws InstantiationException,
IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
InstantiationException
IllegalAccessException
IllegalArgumentException
InvocationTargetExceptionprotected abstract CentralityAlg<V,E,S> calculateShortestPathsFromNode(V startNode)
V of every other node; also
updates the predecessor sets.
startNode - Start node
GraphSearchAlgorithm used to find the shortest paths.
protected void calculateClosenessForNode(V node,
S paths)
#calculateCentralityMeasures(int), this method calculates its
closeness centrality (or "out" closeness centrality for digraphs).
node - The given node.paths - Its path length data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||