Expand description
Algorithms to create certain parameterisable graph classes, like binary trees.
Functionsยง
- compute_
m_ from_ n_ and_ c - Computes the amount of edges in a graph with n nodes, given the hamiltonian edge factor c.
- create_
binary_ tree - Adds a binary tree to the given graph.
- create_
random_ graph - Creates a random graph with the given amount of nodes.
Assumes that the graph is empty.
The amount of arcs will be
c * n * (log(n) + log(log(n)))
, wheren
is the amount of nodes. - create_
random_ hamiltonian_ graph - Creates a random hamiltonian graph with the given amount of nodes.
Assumes that the graph is empty.
The amount of arcs will be
c * n * (log(n) + log(log(n)))
, wheren
is the amount of nodes.