Random graph generation

QEmbed.Embed.generateRandomGraph( numNodes = 2, numEdges = 1, allowedRedos = 2000 )

Method generates a fully connected undirected graph with numNodes nodes, numEdges edges.

Parameters:

  • numNodes - The number of nodes desired, value is defaulted to 2 nodes.
  • numEdges - The number of edges desired, value is defaulted to 1 edge.
  • allowedRedos - The max number of retries allowed for trying to insert an edge in the graph, value is defaulted to 2000 max retries.

Returns:

  • None - populates the Embed object with graph