Classes
Methods
free()
- Source:
Returns:
Frees the memory allocated on the Wasm heap for this object. This invalidates this object and all references to it.
membership(optionsopt) → {Int32Array|Int32WasmArray}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Array containing the cluster membership for each cell.
- Type
- Int32Array | Int32WasmArray
modularity(optionsopt) → {number}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
The modularity at the specified merge step, or the maximum modularity across all merge steps.
- Type
- number
numberOfMergeSteps() → {number}
- Source:
Returns:
Number of merge steps used by the Walktrap algorithm.
- Type
- number