Wikipedia
, (t) , , " ", , , , , , , .
, - 1. ? . , 9 :
1 2 3
4 5 6
7 8 9
- 1 - 5. , , . 4, 7, 8, .
, 1, 2, 4 5. 5, 6, 8 9. , , , 1, . , 2. s t. s 1, 2, 4 5, 5, 6, 8, 9 t. , , .. 1 2, 4, 5, 2, 4, 5 1 .
, - node, , node. , , , , 1. , " ". 2 , .
, , . 5 s t, 4, 8 a 8 t, :
s
4 5
a t
8
:
s->4in (capacity 2)
s->5in (capacity 2)
4in->4out (capacity 1)
5in->5out (capacity 1)
8in->8out (capacity 1)
4out->s (capacity 2)
4out->a (capacity 2)
5out->s (capacity 2)
5out->a (capacity 2)
5out->t (capacity 2)
8out->a (capacity 2)
8out->t (capacity 2)
a->4in (capacity 2)
a->5in (capacity 2)
a->8in (capacity 2)
s- > 5in- > 5out- > t
s- > 4in- > 4out- > a- > 8in- > 8out- > t