|
|||||||||
| 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.transformToArray.UndirectedTriplesHistogram
public class UndirectedTriplesHistogram
Rediscovery of Batagel-Mrvar algorithm
Batagel, V., A. Mrvar. 2001. A subquadratic triad census algorithm for large
sparse networks with small maximum degree. Social Networks 23:237-43.
Transforms a graph object (one mode and relation) into 4 dimensional double
array describing a histogram of all triples of actors in the graph.
Links are classified in the following way:
| Field Summary |
|---|
| Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
listener |
| Constructor Summary | |
|---|---|
UndirectedTriplesHistogram()
|
|
| Method Summary | |
|---|---|
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. |
protected java.util.TreeSet<Actor> |
getLinks(Graph g,
java.util.LinkedList<Actor> v,
java.util.LinkedList<Actor> comparator,
java.util.TreeSet<Actor> allNeighbors)
|
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: name: name of this algorithm. |
UndirectedTriplesHistogram |
prototype()
All Components implement the prototype pattern. |
| 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 |
| Constructor Detail |
|---|
public UndirectedTriplesHistogram()
| Method Detail |
|---|
public void execute(Graph g)
Algorithm
execute in interface Algorithmg - graph to be modified
protected java.util.TreeSet<Actor> getLinks(Graph g,
java.util.LinkedList<Actor> v,
java.util.LinkedList<Actor> comparator,
java.util.TreeSet<Actor> allNeighbors)
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 - parameters to be loaded - may be nullpublic UndirectedTriplesHistogram 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 | ||||||||