Class de.aitools.js.ClusterAlgorithm
Implementation of ClusterAlgorithm
Defined in: Clustering.js.
Constructor Attributes | Constructor Name and Description |
---|---|
de.aitools.js.ClusterAlgorithm(nodeIdClusterMapping)
Implementation of ClusterAlgorithm - algorithms are implemented as
a singleton patterns with an input: Graph and output: Clustering.
|
Method Attributes | Method Name and Description |
---|---|
computeClustering(graph)
Method to compute a clustering using a graph.
|
Class Detail
de.aitools.js.ClusterAlgorithm(nodeIdClusterMapping)
Implementation of ClusterAlgorithm - algorithms are implemented as
a singleton patterns with an input: Graph and output: Clustering.
Example:
MajorClust, creates a clustering through comparing weights of single clusters / node connections. Usage:
de.aitools.js.MajorClust.setThreshold(value);
var MajorClust = new de.aitools.js.MajorClust();
var ca = new de.aitools.js.ClusterAlgorithm(MajorClust);
var cluster = ca.computeClustering(graph);
Author: Christian Fricke [email protected].
Example:
MajorClust, creates a clustering through comparing weights of single clusters / node connections. Usage:
de.aitools.js.MajorClust.setThreshold(value);
var MajorClust = new de.aitools.js.MajorClust();
var ca = new de.aitools.js.ClusterAlgorithm(MajorClust);
var cluster = ca.computeClustering(graph);
Author: Christian Fricke [email protected].
- Parameters:
- {Object} nodeIdClusterMapping
- mapping: key[nodeId]=>value[clusterId]
Method Detail
{de.aitools.js.Clustering}
computeClustering(graph)
Method to compute a clustering using a graph.
- Parameters:
- {de.aitools.js.Graph} graph
- The graph to be clusterd
- Returns:
- {de.aitools.js.Clustering} A clustering