Reimplement routing table using netwoorkx.