Graphs, groups and self-similarity