fixed a bug where directed random graphs had no edges for the first graph node
added a test case for the bug and refactored the tests for the G(n, p) random graphs
PEP 8 whitespace adaptions