getPropGraphState: Get a random proposed state of a given igraph. To do this,...

Description Usage Arguments Value Examples

View source: R/runSaviHelperFunctions.R

Description

This is a helper function that is used in runSavi which is not meant for the user.

Usage

1
getPropGraphState(g, numOfVertexGroups)

Arguments

g

The current igraph in its current state.

numOfVertexGroups

The desired number of vertex groups for the graph. It is required that this number be greater than 1 or the function runSavi will throw an error. It is recommended that the number be less than the number of verticies in the graph.

Value

A new igraph in the proposed state.

Examples

1
    getPropGraph(g,4)

nsimone101/savi documentation built on July 1, 2020, 4:53 a.m.