router creats adjacncy table , next step convert it to graph