|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gephi.statistics.plugin.GraphDistance
public class GraphDistance
Ref: Ulrik Brandes, A Faster Algorithm for Betweenness Centrality, in Journal of Mathematical Sociology 25(2):163-177, (2001)
Field Summary | |
---|---|
static java.lang.String |
BETWEENNESS
|
static java.lang.String |
CLOSENESS
|
static java.lang.String |
ECCENTRICITY
|
Constructor Summary | |
---|---|
GraphDistance()
|
Method Summary | |
---|---|
boolean |
cancel()
Cancel the task. |
void |
execute(GraphModel graphModel,
AttributeModel attributeModel)
Executes the statistics algorithm. |
void |
execute(HierarchicalGraph hgraph,
AttributeModel attributeModel)
|
double |
getDiameter()
|
double |
getPathLength()
|
java.lang.String |
getReport()
Returns an HTML string that displays the statistics result. |
boolean |
isDirected()
|
boolean |
isNormalized()
|
void |
setDirected(boolean isDirected)
|
void |
setNormalized(boolean isNormalized)
|
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BETWEENNESS
public static final java.lang.String CLOSENESS
public static final java.lang.String ECCENTRICITY
Constructor Detail |
---|
public GraphDistance()
Method Detail |
---|
public double getPathLength()
public double getDiameter()
public void execute(GraphModel graphModel, AttributeModel attributeModel)
Statistics
It is preferable to work on visible graphs, to be synchronized with the visualization.
execute
in interface Statistics
graphModel
- attributeModel
- The elements attributes, and where to write table resultspublic void execute(HierarchicalGraph hgraph, AttributeModel attributeModel)
public void setNormalized(boolean isNormalized)
public boolean isNormalized()
public void setDirected(boolean isDirected)
public boolean isDirected()
public java.lang.String getReport()
Statistics
getReport
in interface Statistics
public boolean cancel()
LongTask
true
if the task has been sucessfully cancelled, false
otherwise.
cancel
in interface LongTask
public void setProgressTicket(ProgressTicket progressTicket)
LongTask
setProgressTicket
in interface LongTask
progressTicket
-
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |