Community detection in networks without observing edges