Percolation and its relations to other processes in networks