completed Kleinberg graph generator