org.gephi.statistics.plugin
Class ConnectedComponents
java.lang.Object
org.gephi.statistics.plugin.ConnectedComponents
- All Implemented Interfaces:
- Statistics, LongTask
public class ConnectedComponents
- extends java.lang.Object
- implements Statistics, LongTask
- Author:
- pjmcswee
Field Summary |
static java.lang.String |
STRONG
|
static java.lang.String |
WEAKLY
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WEAKLY
public static final java.lang.String WEAKLY
- See Also:
- Constant Field Values
STRONG
public static final java.lang.String STRONG
- See Also:
- Constant Field Values
ConnectedComponents
public ConnectedComponents()
execute
public void execute(GraphModel graphModel,
AttributeModel attributeModel)
- Description copied from interface:
Statistics
- Executes the statistics algorithm.
It is preferable to work on visible graphs, to be synchronized with the
visualization.
- Specified by:
execute
in interface Statistics
- Parameters:
graphModel
- The graph topologyattributeModel
- The elements attributes, and where to write table results
weaklyConnected
public void weaklyConnected(UndirectedGraph graph,
AttributeModel attributeModel)
top_tarjans
public void top_tarjans(DirectedGraph graph,
AttributeModel attributeModel)
getConnectedComponentsCount
public int getConnectedComponentsCount()
setDirected
public void setDirected(boolean pDirected)
isDirected
public boolean isDirected()
getComponentsSize
public int[] getComponentsSize()
getGiantComponent
public int getGiantComponent()
getReport
public java.lang.String getReport()
- Description copied from interface:
Statistics
- Returns an HTML string that displays the statistics result. Can contains
complex HTML snippets and images.
- Specified by:
getReport
in interface Statistics
- Returns:
- An HTML string that displays the results for this Statistics
cancel
public boolean cancel()
- Description copied from interface:
LongTask
- Cancel the task. Returns
true
if the task has been sucessfully cancelled, false
otherwise.
- Specified by:
cancel
in interface LongTask
- Returns:
true
if the task has been sucessfully cancelled, false
otherwise
setProgressTicket
public void setProgressTicket(ProgressTicket progressTicket)
- Description copied from interface:
LongTask
- Set the progress ticket for the long task. Can't be null.
- Specified by:
setProgressTicket
in interface LongTask
- Parameters:
progressTicket
- the progress ticket for this task