|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsampleapplication.CentralityComputer<V,E>
public class CentralityComputer<V,E>
| Constructor Summary | |
|---|---|
CentralityComputer(org.jgrapht.Graph<V,E> myGraph)
Class constructor. |
|
| Method Summary | |
|---|---|
java.lang.Double |
findBetweennessOf(V vertex)
Calculates a (normalized) betweenness centrality of a vertex. |
java.lang.Double |
findClosenessOf(V vertex)
Calculates a (normalized) closeness centrality of a vertex. |
java.lang.Double |
findClusteringOf(V vertex)
Calculates a clustering coefficient of a vertex. |
java.lang.Double |
findDegreeOf(V vertex)
Calculates a (normalized) degree centrality of a vertex. |
java.lang.Integer |
getDistance(V s,
V t)
Calculates the number of edges on the shortest path between two vertices. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CentralityComputer(org.jgrapht.Graph<V,E> myGraph)
| Method Detail |
|---|
public java.lang.Double findDegreeOf(V vertex)
vertex - the vertex for which degree centrality is computed.
public java.lang.Double findClosenessOf(V vertex)
vertex - the vertex for which closeness centrality is computed.
public java.lang.Double findBetweennessOf(V vertex)
vertex - the vertex for which closeness centrality is computed.
public java.lang.Double findClusteringOf(V vertex)
vertex - the vertex for which clustering coefficient is computed.
public java.lang.Integer getDistance(V s,
V t)
s - source vertext - destination vertex
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||