Set of periods, topological entropy and combinatorial dynamics for tree and graph maps