Generate random graph of type Graph[double,int[