org.javanetworkanalyzer.analyzers
Class GeneralizedGraphAnalyzer<V,E>

java.lang.Object
  extended by org.javanetworkanalyzer.analyzers.GeneralizedGraphAnalyzer<V,E>
Direct Known Subclasses:
AccessibilityAnalyzer, GraphAnalyzer

public abstract class GeneralizedGraphAnalyzer<V,E>
extends Object

Root class of all classes that do some type of analysis on graphs (centrality, connectedness, etc.).

Author:
Adam Gouge

Field Summary
protected  org.jgrapht.Graph<V,E> graph
          The graph to be analyzed.
protected  int nodeCount
          The number of nodes in this graph.
protected  Set<V> nodeSet
          The set of nodes of this graph.
 
Constructor Summary
GeneralizedGraphAnalyzer(org.jgrapht.Graph<V,E> graph)
          Initializes a new instance of a graph analyzer with the given ProgressMonitor.
 
Method Summary
 org.jgrapht.Graph<V,E> getGraph()
          Returns the graph this analyzer is using.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

protected final org.jgrapht.Graph<V,E> graph
The graph to be analyzed.


nodeSet

protected final Set<V> nodeSet
The set of nodes of this graph.


nodeCount

protected final int nodeCount
The number of nodes in this graph.

Constructor Detail

GeneralizedGraphAnalyzer

public GeneralizedGraphAnalyzer(org.jgrapht.Graph<V,E> graph)
Initializes a new instance of a graph analyzer with the given ProgressMonitor.

Parameters:
graph - The graph to be analyzed.
pm - The ProgressMonitor to be used.
Method Detail

getGraph

public org.jgrapht.Graph<V,E> getGraph()
Returns the graph this analyzer is using. This is often used for gaining access to the vertices which contain the results of the analysis.

Returns:
The graph


Copyright © 2014. All Rights Reserved.