This is a quite complex problem. Even for a 4 atoms molecule (or an ion) you can get different answers, ie:
2 angles for linear species, 3 angles for flat or pyramidal species, 4 or 5 angles for cyclic species and 6 angles for bicyclic specie. For 5 atoms you have 3 to 9 possible angles (try to draw all these structures). Moreover only angles are insufficient to show a proper configuration.