Learn R Programming

netUtils (version 0.8.3)

graph_kpartite: k partite graphs

Description

Create a random k-partite graph.

Usage

graph_kpartite(n = 10, grp = c(5, 5))

Value

igraph object

Arguments

n

number of nodes

grp

vector of partition sizes

Author

David Schoch

Examples

Run this code
# 3-partite graph with equal sized groups
graph_kpartite(n = 15, grp = c(5, 5, 5))

Run the code above in your browser using DataLab