added randomUndirectedGraph and removed gentree