I wrote a simple simulation of routing in a mobile ad-hoc network using Mathematica®. The network is created by nodes that are abstractions from transceivers and able to communicate information.
The transmission range of the nodes is limited. This means that, in order to transmit information to another node in the network that is not in immediate range, other nodes must be used as relay points.
The PDF-document describing the simulation and containing the code can be downloaded here.