Bug fix

Made the random graphs work