To model a WAN, we need a graph in which the nodes model switches and the edges model direct join between switches. The modeling saves essence of network, and it ignores attached devices as given in the figure below. Modeling of a specific WAN is described.
ROUTE COMPUTATION WITH A GRAPH:
We can show routing table with edges as given in the figure below:
The graph algorithms can be used to find routes.