Theory of cell lineage graphs and their application to the intestinal epithelium