detectCommunities: Find communities in a graph

Description Usage Arguments Value Note Examples

Description

Find communities in a graph

Usage

1
detectCommunities(dnet, type = "walktrap")

Arguments

dnet

A document network

type

The algorithm to be used: options include "walktrap" and "betweenness".

view

A logical that indicates whether you want to view the communities after detecting them or not. Default is True.

Value

dnet A dnet object with a communities object added into the slot that holds the community data detected.

Note

This function includes only the "walktrap" and "edge.betweenness" options. For a wider selection of community detection algorithms, consult the igraph package directly. Communities identified using alternative methods can be added to a dnet object by assigning them to the dnet@communities slot manually. If you want options added, email the developer for requests.

Examples

1
2
communities = detectCommunities(dnet, type="edge.betweenness")
dnet = detectCommunities(dnet, view=F)

michaelgavin/htn documentation built on May 22, 2019, 9:50 p.m.