Added necessary forwarding table entries for multiple router topologies; Added queries for links instead of relying on set indices