Enhancing graph-routing algorithm for industrial wireless sensor networks