Homology groups for particles on one-connected graphs