The cost represent the delay/time it takes for a packet to traverse the network link.
Graphically:
Facts:
The shortest paths from node B to all other nodes:
Destination | of packet | Next node --------------+------------ A | A B | - C | C D | A E | E F | F G | A
Notice that:
(The node can send and receive frames from nodes that are directly connected to them)
(So each node has the link cost of every link)