implementation of a random graph with an adjancy list node storage