Close
Close window
networks(deprecated)/flow - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : networks(deprecated)/flow
[フレーム] [フレーム]

networks

flow

finds the maximum flow in a network

Calling Sequence

flow(G, s, t)

flow(G, s, t, 'maxflow'=n)

flow(G, s, t, eset, comp)

flow(G, s, t, eset, comp, 'maxflow'=n)

Parameters

G

-

graph or network

s

-

source vertex for flow

t

-

sink vertex for flow

n

-

non-negative integer, upper bound for flow

eset

-

name for the set of saturated edges

comp

-

name for vertices in eset

Description

Important: The networks package has been deprecated . Use the superseding command GraphTheory[MaxFlow] instead.

It returns the maximum flow from s to t in G.

If 'maxflow' option is set then flow of at most n in G is found.

This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[flow](...).

Examples

Important: The networks package has been deprecated . Use the superseding command GraphTheory[MaxFlow] instead.

>

withnetworks:

>

Gpetersen:

>

flowG,1,2,eset,comp

3

(1)
>

eset

1,2,1,5,1,6,2,3,2,8,3,4,4,7,5,9,6,7,8,9

(2)
>

comp

1,2,4,5,6,7,8,9

(3)
>

eseteset:compcomp:

>

flowG,1,5,eset,comp,maxflow=1

1

(4)
>

eset

1,5

(5)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /