I think this would go well using the Graph module. It would be more self-documenting, and would seperate the algorithm from the graph representation. I'll try a translation if you like.
After Compline,
Zaxo
In reply to Re: Construct Graph from a Degree Sequence
by Zaxo
in thread Construct Graph from a Degree Sequence
by japhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |