linear optics and community detection and other