Skip to content

Commit a055111

Browse files
Max-flow docs
Co-authored-by: Ioannis Panagiotas <ioannis.panagiotas@neo4j.com>
1 parent 9b239d8 commit a055111

File tree

9 files changed

+541
-3
lines changed

9 files changed

+541
-3
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* Copyright (c) "Neo4j"
3+
* Neo4j Sweden AB [http://neo4j.com]
4+
*
5+
* This file is part of Neo4j.
6+
*
7+
* Neo4j is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
*/
20+
package org.neo4j.gds.doc;
21+
22+
import org.neo4j.gds.functions.AsNodeFunc;
23+
import org.neo4j.gds.paths.maxflow.MaxFlowMutateProc;
24+
import org.neo4j.gds.paths.maxflow.MaxFlowStatsProc;
25+
import org.neo4j.gds.paths.maxflow.MaxFlowStreamProc;
26+
import org.neo4j.gds.paths.maxflow.MaxFlowWriteProc;
27+
28+
import java.util.List;
29+
30+
class MaxFlowDocTest extends SingleFileDocTestBase {
31+
32+
@Override
33+
protected List<Class<?>> functions() {
34+
return List.of(AsNodeFunc.class);
35+
}
36+
37+
@Override
38+
protected List<Class<?>> procedures() {
39+
return List.of(
40+
MaxFlowStreamProc.class,
41+
MaxFlowStatsProc.class,
42+
MaxFlowMutateProc.class,
43+
MaxFlowWriteProc.class
44+
);
45+
}
46+
47+
@Override
48+
protected String adocFile() {
49+
return "pages/algorithms/max-flow.adoc";
50+
}
51+
52+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright (c) "Neo4j"
3+
* Neo4j Sweden AB [http://neo4j.com]
4+
*
5+
* This file is part of Neo4j.
6+
*
7+
* Neo4j is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
*/
20+
package org.neo4j.gds.doc.syntax;
21+
22+
import java.util.List;
23+
24+
class MaxFlowSyntaxTest extends SyntaxTestBase {
25+
26+
@Override
27+
protected Iterable<SyntaxModeMeta> syntaxModes() {
28+
return List.of(
29+
SyntaxModeMeta.of(SyntaxMode.STREAM),
30+
SyntaxModeMeta.of(SyntaxMode.STATS),
31+
SyntaxModeMeta.of(SyntaxMode.WRITE),
32+
SyntaxModeMeta.of(SyntaxMode.MUTATE)
33+
);
34+
}
35+
36+
@Override
37+
protected String adocFile() {
38+
return "pages/algorithms/max-flow.adoc";
39+
}
40+
}

doc/modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
*** xref:algorithms/bfs.adoc[]
107107
*** xref:algorithms/dfs.adoc[]
108108
*** xref:algorithms/bellman-ford-single-source.adoc[Bellman-Ford Single-Source Shortest Path]
109+
*** xref:algorithms/max-flow.adoc[]
109110
*** xref:algorithms/dag/longest-path.adoc[]
110111
** xref:algorithms/dag/dag-algorithms.adoc[]
111112
*** xref:algorithms/dag/topological-sort.adoc[]

0 commit comments

Comments
 (0)