ring topology using XBee s2c and Arduino

Hi, I am trying to create different topologies (complete, ring, etc) using Xbee s2c and Arduino. How can I make this? My idea is to test some gossip algorithm over this topologies.

As far as the radios are concerned, I would use them in the 802.15.4 configuration/firmware and at defaults except for use API mode. Then it is a simple matter of sending the data to the node you want to send it to. Especially if they are all in range of each other.