public class ConnectedComponents extends Object implements Statistics, LongTask
| Modifier and Type | Field and Description |
|---|---|
static String |
STRONG |
static String |
WEAKLY |
| Constructor and Description |
|---|
ConnectedComponents() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancel the task.
|
LinkedList<LinkedList<org.gephi.graph.api.Node>> |
computeWeaklyConnectedComponents(org.gephi.graph.api.Graph graph,
HashMap<org.gephi.graph.api.Node,Integer> indices) |
HashMap<org.gephi.graph.api.Node,Integer> |
createIndicesMap(org.gephi.graph.api.Graph graph) |
void |
execute(org.gephi.graph.api.GraphModel graphModel)
Executes the statistics algorithm.
|
int |
getComponentNumber(LinkedList<LinkedList<org.gephi.graph.api.Node>> components,
org.gephi.graph.api.Node node) |
int[] |
getComponentsSize() |
int |
getConnectedComponentsCount() |
int |
getGiantComponent() |
String |
getReport()
Returns an HTML string that displays the statistics result.
|
boolean |
isDirected() |
void |
setDirected(boolean isDirected) |
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task.
|
void |
stronglyConnected(org.gephi.graph.api.DirectedGraph graph,
org.gephi.graph.api.GraphModel graphModel) |
LinkedList<LinkedList<org.gephi.graph.api.Node>> |
top_tarjans(org.gephi.graph.api.DirectedGraph graph,
HashMap<org.gephi.graph.api.Node,Integer> indices) |
void |
weaklyConnected(org.gephi.graph.api.UndirectedGraph graph) |
public static final String WEAKLY
public static final String STRONG
public void execute(org.gephi.graph.api.GraphModel graphModel)
StatisticsIt is preferable to work on visible graphs, to be synchronized with the visualization.
execute in interface StatisticsgraphModel - The graph modelpublic void weaklyConnected(org.gephi.graph.api.UndirectedGraph graph)
public LinkedList<LinkedList<org.gephi.graph.api.Node>> computeWeaklyConnectedComponents(org.gephi.graph.api.Graph graph, HashMap<org.gephi.graph.api.Node,Integer> indices)
public HashMap<org.gephi.graph.api.Node,Integer> createIndicesMap(org.gephi.graph.api.Graph graph)
public void stronglyConnected(org.gephi.graph.api.DirectedGraph graph,
org.gephi.graph.api.GraphModel graphModel)
public LinkedList<LinkedList<org.gephi.graph.api.Node>> top_tarjans(org.gephi.graph.api.DirectedGraph graph, HashMap<org.gephi.graph.api.Node,Integer> indices)
public int getConnectedComponentsCount()
public void setDirected(boolean isDirected)
public boolean isDirected()
public int[] getComponentsSize()
public int getGiantComponent()
public int getComponentNumber(LinkedList<LinkedList<org.gephi.graph.api.Node>> components, org.gephi.graph.api.Node node)
public String getReport()
StatisticsgetReport in interface Statisticspublic boolean cancel()
LongTasktrue if the task has been sucessfully cancelled, false otherwise.public void setProgressTicket(ProgressTicket progressTicket)
LongTasksetProgressTicket in interface LongTaskprogressTicket - the progress ticket for this taskCopyright © 2007–2017. All rights reserved.