randomConnectionMatrix: randomConnectionMatrix

Description Usage Arguments Value Examples

View source: R/randomConnectionMatrix.R

Description

Generates a connection matrix for a random undirected graph. Intended for input to QAOA_maxcut.

Usage

1
randomConnectionMatrix(nNodes,nEdges)

Arguments

nNodes

Number of nodes in generated graph

nEdges

Number of undirected edges in generated graph

Value

Connection Matrix specifying the edges of an undirected graph. Rows are source nodes, columns are destination nodes.

Examples

1

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.