Clarified a comment.
Defined various functions in order to generate random graphs.