public class GraphDensity extends Object implements Statistics
| Constructor and Description |
|---|
GraphDensity() |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateDensity(org.gephi.graph.api.Graph graph,
boolean isGraphDirected) |
void |
execute(org.gephi.graph.api.GraphModel graphModel)
Executes the statistics algorithm.
|
double |
getDensity() |
boolean |
getDirected() |
String |
getReport()
Returns an HTML string that displays the statistics result.
|
void |
setDirected(boolean isDirected) |
public void setDirected(boolean isDirected)
public boolean getDirected()
public double getDensity()
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 double calculateDensity(org.gephi.graph.api.Graph graph,
boolean isGraphDirected)
public String getReport()
StatisticsgetReport in interface StatisticsCopyright © 2007–2017. All rights reserved.