|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
V - Vertexpublic interface VCent<V extends VCent,E>
Vertex for centrality computations (used by graph analyzers).
| Method Summary | |
|---|---|
void |
accumulateBetweenness(double additionalBetweenness)
Accumulates the betweenness value in each run by adding the new betweenness value to the old |
void |
accumulateDependency(double additionalDependency)
Accumulates the dependency of this node |
void |
accumulateSPCount(long additionalSPCount)
Accumulates the number of shortest paths leading to this node |
double |
getBetweenness()
Gets the betweenness value for this node. |
double |
getCloseness()
Returns the closeness. |
double |
getDependency()
Gets the dependency of this node to any other vertex |
int |
getID()
Returns the id of this node. |
Set<V> |
getPredecessors()
Returns the predecessors. |
long |
getSPCount()
Gets the number of shortest paths to this node |
void |
reset()
Resets the shortest path count and dependency to zero. |
void |
setBetweenness(double betweenness)
Sets the betweenness. |
void |
setCloseness(double closeness)
Sets the closeness. |
void |
setSource()
Sets the shortest path count to one and the dependency to zero. |
void |
setSPCount(long newSPCount)
Resets the number of shortest paths leading to this node |
| Methods inherited from interface org.javanetworkanalyzer.data.VPred |
|---|
addPredecessor, addPredecessorEdge, clear, getPredecessorEdges |
| Method Detail |
|---|
void reset()
void setSource()
int getID()
Set<V> getPredecessors()
getPredecessors in interface VPred<V extends VCent,E>long getSPCount()
void accumulateSPCount(long additionalSPCount)
additionalSPCount - Number of further shortest paths leading to this
nodevoid setSPCount(long newSPCount)
newSPCount - New number shortest paths leading to this nodedouble getDependency()
void accumulateDependency(double additionalDependency)
additionalDependency - New dependency to be addeddouble getBetweenness()
void accumulateBetweenness(double additionalBetweenness)
additionalBetweenness - betweenness value from a run starting at
certain source nodevoid setBetweenness(double betweenness)
betweenness - The betweenness to set.double getCloseness()
void setCloseness(double closeness)
closeness - The closeness to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||