Description Usage Arguments Value

In each step each node in the network is moved to a neighboring cluster (or moved to a new cluster including only itself) if it increases the modularity.

1 | ```
louvainStep(G, C, O, Q = modularity(G, C), verbose = TRUE)
``` |

`G` |
a symmetric N-by-N numeric matrix representing the weights of edges between the N nodes |

`C` |
a numeric vector of length N with cluster assignments |

`O` |
a vecotor indicating the order by which the nodes are evaluated |

`Q` |
the initial modularity value, since the method evaluates only the change in modularity so as not to calculate the modularity each time. If no initial value is provided, the current modularity value is calculated. |

`verbose` |
a boolean vaue indicating whether to print progress messages and a progression bar (default=TRUE) |

a list containing the a vector of length N (clusters) with cluster assignments that maximizes modularity, and the new modularity (newQ)

yishaishimoni/phenoClust documentation built on Dec. 15, 2017, 3:05 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.