Method for Achieving Maximum Flow in Wireless Multihop Networks