Gephi Toolkit Javadoc

org.gephi.statistics.plugin
Class PageRank

java.lang.Object
  extended by org.gephi.statistics.plugin.PageRank
All Implemented Interfaces:
Statistics, LongTask

public class PageRank
extends java.lang.Object
implements Statistics, LongTask

Ref: Sergey Brin, Lawrence Page, The Anatomy of a Large-Scale Hypertextual Web Search Engine, in Proceedings of the seventh International Conference on the World Wide Web (WWW1998):107-117

Author:
pjmcswee

Field Summary
static java.lang.String PAGERANK
           
 
Constructor Summary
PageRank()
           
 
Method Summary
 boolean cancel()
          Cancel the task.
 void execute(GraphModel graphModel, AttributeModel attributeModel)
          Executes the statistics algorithm.
 void execute(HierarchicalGraph hgraph, AttributeModel attributeModel)
           
 boolean getDirected()
           
 double getEpsilon()
           
 double getProbability()
           
 java.lang.String getReport()
          Returns an HTML string that displays the statistics result.
 boolean isUseEdgeWeight()
           
 void setDirected(boolean isDirected)
           
 void setEpsilon(double eps)
           
 void setProbability(double prob)
           
 void setProgressTicket(ProgressTicket progressTicket)
          Set the progress ticket for the long task.
 void setUseEdgeWeight(boolean useEdgeWeight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAGERANK

public static final java.lang.String PAGERANK
See Also:
Constant Field Values
Constructor Detail

PageRank

public PageRank()
Method Detail

setDirected

public void setDirected(boolean isDirected)

getDirected

public boolean getDirected()
Returns:

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 topology
attributeModel - The elements attributes, and where to write table results

execute

public void execute(HierarchicalGraph hgraph,
                    AttributeModel attributeModel)

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:

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:

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 -

setProbability

public void setProbability(double prob)
Parameters:
prob -

setEpsilon

public void setEpsilon(double eps)
Parameters:
eps -

getProbability

public double getProbability()
Returns:

getEpsilon

public double getEpsilon()
Returns:

isUseEdgeWeight

public boolean isUseEdgeWeight()

setUseEdgeWeight

public void setUseEdgeWeight(boolean useEdgeWeight)

Gephi Toolkit Javadoc