|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.graph.model.ModelShell
nz.ac.waikato.mcennis.rat.graph.algorithm.prestige.LinkBetweeness
public class LinkBetweeness
Class built upon OptimizedPathBase that calculates Betweeness for links. OptimizedPathBase
only records one geodesic path for each actor pair, otherwise same as the
betweeness metric deefined in Freeman79.
Freeman, L. "Centrality in social networks: I. Conceptual clarification."
Social Networks. 1:215--239.
| Field Summary | |
|---|---|
protected OptimizedLinkBetweenessCore |
core
|
protected double |
maxBetweeness
|
| Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
listener |
| Constructor Summary | |
|---|---|
LinkBetweeness()
Creates a new instance of OptimizedBetweeness |
|
| Method Summary | |
|---|---|
protected void |
doCleanup(PathNode[] path,
Graph g)
|
void |
execute(Graph g)
execute the algorithm against the given graph |
java.util.List<IODescriptor> |
getInputType()
The input type describes all the different kinds of graph objects that are utilized (and hence required) by this object. |
java.util.List<IODescriptor> |
getOutputType()
The output type describes all the different kinds of graph objects that are created during the execution of this algorithm. |
Properties |
getParameter()
List of all parameters this component accepts. |
Parameter |
getParameter(java.lang.String param)
Returns the specific parameter identified by its key-name. |
void |
init(Properties map)
Parameters to be initialized. |
LinkBetweeness |
prototype()
All Components implement the prototype pattern. |
void |
publishChange(Model m,
int type,
int argument)
Recieve and update of the given type. |
| Methods inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
addListener, fireChange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model |
|---|
addListener |
| Field Detail |
|---|
protected double maxBetweeness
protected OptimizedLinkBetweenessCore core
| Constructor Detail |
|---|
public LinkBetweeness()
| Method Detail |
|---|
public void execute(Graph g)
Algorithm
execute in interface Algorithmg - graph to be modified
protected void doCleanup(PathNode[] path,
Graph g)
public java.util.List<IODescriptor> getInputType()
Component
getInputType in interface ComponentIODescriptorpublic java.util.List<IODescriptor> getOutputType()
Component
getOutputType in interface ComponentIODescriptorpublic Properties getParameter()
Component
getParameter in interface Componentpublic Parameter getParameter(java.lang.String param)
Component
getParameter in interface Componentparam - key-name of the parameter
public void init(Properties map)
init in interface Componentmap - map of the given properties naming parameters and their values in a string
public void publishChange(Model m,
int type,
int argument)
Listener
publishChange in interface Listenerm - model that changedtype - type of change that has occuredpublic LinkBetweeness prototype()
Component
prototype in interface Componentprototype in interface Algorithm
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||