Add generic abstract class to create random graphs for testing purposes