added havelHakimi and graphicSequence functions