From 41d6b54b69cb3d9fcfde31e8df39a1fbf6c4ee7b Mon Sep 17 00:00:00 2001 From: Kohei Morita Date: Sat, 25 Dec 2021 23:36:24 +0900 Subject: [PATCH] fix documents of maxflow --- document_en/maxflow.md | 3 ++- document_ja/maxflow.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/document_en/maxflow.md b/document_en/maxflow.md index 3311a7c..d2c39f8 100644 --- a/document_en/maxflow.md +++ b/document_en/maxflow.md @@ -43,7 +43,8 @@ It adds an edge oriented from the vertex `from` to the vertex `to` with the capa (2) Cap graph.flow(int s, int t, Cap flow_limit); ``` -- It augments the flow from $s$ to $t$ as much as possible. It returns the amount of the flow augmented. +- (1) It augments the flow from $s$ to $t$ as much as possible. It returns the amount of the flow augmented. +- (2) It augments the flow from $s$ to $t$ as much as possible, until reaching the amount of `flow_limit`. It returns the amount of the flow augmented. - You may call it multiple times. See [Appendix](./appendix.html) for further details. **@{keyword.constraints}** diff --git a/document_ja/maxflow.md b/document_ja/maxflow.md index fbdc430..119b8ce 100644 --- a/document_ja/maxflow.md +++ b/document_ja/maxflow.md @@ -44,7 +44,7 @@ int graph.add_edge(int from, int to, Cap cap); ``` - (1) 頂点 $s$ から $t$ へ流せる限り流し、流せた量を返す。 -- (2) 頂点 $s$ から $t$ へ流量 $flow_limit$ に達するまで流せる限り流し、流せた量を返す。 +- (2) 頂点 $s$ から $t$ へ流量 `flow_limit` に達するまで流せる限り流し、流せた量を返す。 - 複数回呼ぶことも可能で、その時の挙動は [Appendix](./appendix.html) を参照してください。 **@{keyword.constraints}**