Inferring Network Structure from Co-Occurrences