Modelling network topology and mobile agent interaction: an integrated framework