working uniform connection graph generator