Network::eCapacity
-- returns
the table of capacities
returns the table of
capacities of the network Network::eCapacity
(G)G
.
Network::eCapacity(G)
G |
- | a network |
a table
Network::eCapacity
(G)
returns a table
with the capacity of the network G
. Thus
Network::eCapacity
(G)[[v,w]]
is the capacity
of the edge [v,w]
in the network G
.>> V := [1,2,3,4,5]: Ed := [[1,2], [1,3], [2,3], [2,4], [3,4], [3,5], [4,5]]: Ecap := [30, 20, 25, 10, 20, 25, 20]: N1 := Network(V, Ed, Capacity=Ecap): Network::eCapacity(N1)
table( [4, 5] = 20, [3, 5] = 25, [3, 4] = 20, [2, 4] = 10, [2, 3] = 25, [1, 3] = 20, [1, 2] = 30 )
The default capacity of edges is 1.
>> N1 := Network::complete(3): Network::eCapacity(N1)
table( [3, 2] = 1, [3, 1] = 1, [2, 3] = 1, [2, 1] = 1, [1, 3] = 1, [1, 2] = 1 )
Network::ECapacity