In the doRandom function, the allowMulti parameter is used to avoid creating duplicate edges when initially generating the graph, but if allowAntiparallel is set and the graph should be acyclic then makeAcyclic will later flip the antiparallel edges, making parallel edges. I think that the allowAntiparallel parameter should be ignored if the graph is acyclic.
In the
doRandom
function, theallowMulti
parameter is used to avoid creating duplicate edges when initially generating the graph, but ifallowAntiparallel
is set and the graph should be acyclic thenmakeAcyclic
will later flip the antiparallel edges, making parallel edges. I think that theallowAntiparallel
parameter should be ignored if the graph is acyclic.