How Are Galaxies Grouped Together