Skip to content

Commit 9a5b755

Browse files
IoannisPanagiotasjjaderberg
authored andcommitted
Small doc fixes
1 parent 89aecf5 commit 9a5b755

File tree

2 files changed

+52
-6
lines changed

2 files changed

+52
-6
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.dag.longestPath.DagLongestPathStreamProc;
24+
25+
import java.util.List;
26+
27+
class DagLongestPathDocTest extends SingleFileDocTestBase {
28+
29+
@Override
30+
protected List<Class<?>> functions() {
31+
return List.of(AsNodeFunc.class);
32+
}
33+
34+
@Override
35+
protected List<Class<?>> procedures() {
36+
return List.of(
37+
DagLongestPathStreamProc.class
38+
);
39+
}
40+
41+
@Override
42+
protected String adocFile() {
43+
return "pages/algorithms/dag/longest-path.adoc";
44+
}
45+
46+
}

doc/modules/ROOT/pages/algorithms/dag/longest-path.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,16 @@ RETURN
147147
nodes(path) as path
148148
ORDER BY index
149149
----
150-
We use the utility function asNode to return the name of node instead of its ID to make results more readable.
150+
We use the utility function `asNode` to return the name of node instead of its ID to make results more readable.
151151

152152
.Results
153153
[opts="header"]
154154
|===
155155
| index | sourceNode | targetNode | totalCost | nodeNames | costs | path
156-
| 0 | "Timber" | "Timber" | 0.0 | ["Timber"] | [0.0] | [Node[0]]
157-
| 1 | "Timber" | "Lumber" | 1.0 | ["Timber", "Lumber"] | [0.0, 1.0] | [Node[0], Node[1]]
158-
| 2 | "Screws" | "Table Maker" | 3.0 | ["Screws", "Table Maker"] | [0.0, 3.0] | [Node[2], Node[3]]
159-
| 3 | "Screws" | "Screws" | 0.0 | ["Screws"] | [0.0] | [Node[2]]
160-
| 4 | "Screws" | "Table" | 4.0 | ["Screws", "Table Maker", "Table"] | [0.0, 3.0, 4.0] | [Node[2], Node[3], Node[4]]
156+
| 0 | "Timber" | "Timber" | 0.0 | [Timber] | [0.0] | [Node[0]]
157+
| 1 | "Timber" | "Lumber" | 1.0 | [Timber, Lumber] | [0.0, 1.0] | [Node[0], Node[1]]
158+
| 2 | "Screws" | "Table Maker" | 3.0 | [Screws, Table Maker] | [0.0, 3.0] | [Node[2], Node[3]]
159+
| 3 | "Screws" | "Screws" | 0.0 | [Screws] | [0.0] | [Node[2]]
160+
| 4 | "Screws" | "Table" | 4.0 | [Screws, Table Maker, Table] | [0.0, 3.0, 4.0] | [Node[2], Node[3], Node[4]]
161161
|===
162162
--

0 commit comments

Comments
 (0)