Previous Page Next Page Contents

Network::eCapacity -- returns the table of capacities

Introduction

Network::eCapacity(G) returns the table of capacities of the network G.

Call(s)

Network::eCapacity(G)

Parameters

G - a network

Returns

a table

Details

Example 1

>> 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
                               )

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000