graph_culberson_variability: 3-Colorable with Variability Graph (+IID) Source:...

Description Usage Arguments Details Value Examples

View source: R/graph_culberson.R

Description

The algorithm is defined in 3 steps:

Usage

1
graph_culberson_variability(N, probability = 1, delta = 0)

Arguments

N

Integer - number of vertices in the graph.

probability

0..1 - edge's probability.

delta

0, 1, 2 - variability. It generates an uniform graph when delta = 0.

Details

1- Create a permutation of nodes 2- Create 3 groups with N/3 nodes, with variability delta 2- Assign edges using IID method

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

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