Initialize routing tables when creating the graph