Groups acting on graphs: Their automorphisms and their length functions