With the same algorithm used in the OSPF and IS-IS routing protocols, it is possible to calculate the shortest path a packet will traverse across the area.
Each circuit is labeled "Cost - Network - Cost". The cost closest to the router is the router's configured cost for that network. Dijkstra's algorithm is then used to determine the shortest (lowest cost) path to travel.