Flag graphs and symmetry type graphs : doctoral thesis