Fundamental group of dual graphs and applications to quantum space time