Then, we can represent the links as (1,2), (1,4), (2,3), (2,4), (3,2), (4,3), (5,2), and (5,4). Now, we can add the values to the nodes and links.
The network representation is as follows:
Nodes:
1: -5
2: 4
3: 8
4: 0
5: -7
Links:
(1,2): 7
(1,4): 6
Show more…