graph_random: Generates a random, valid 3-GCP instance, without...

Description Usage Arguments Value Examples

View source: R/graph_random.R

Description

Generates a random, valid 3-GCP instance, without connectivity guarantee

Usage

1

Arguments

N

Integer - number of vertices in the graph.

density

0..1 - edge density in the graph.

Value

a list with two elements: V - number of nodes in the graph, and E - an edge list in the shape of a 2xE matrix. The graph is guaranteed to have a valid 3-coloring, but not guaranteed to be connected.

Examples

1
generate_random(10,2)

caranha/EvoGCP documentation built on May 3, 2021, 3:40 p.m.