Research Article

A Source-Initiated On-Demand Routing Algorithm Based on the Thorup-Zwick Theory for Mobile Wireless Sensor Networks

Algorithm 4

Path query on the graph structure of a MWSN.
Algorithmā€‰pathQuery(u, v)
given a integer
(u, v, k)
get the path p from u to v
output the edges on p