Graph theory algorithms for mobile as hoc networks