Create a random networkx graph#

create_rdm_graph(n, p, seed=123)[source]#

Create a random networkx graph to be used for QAOAProblem implementations

Parameters
nint

number of nodes in the graph

pfloat

likelyhood of edge between any two nodes, chose between 0 and 1