Skip to content

Commit 4dfe318

Browse files
s1ckknutwalker
authored andcommitted
Add option to supply nodeLabel/relType to project config
1 parent 8ac4544 commit 4dfe318

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graph-projection-api/src/main/java/org/neo4j/gds/NodeLabel.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public static NodeLabel of(@NotNull String name) {
4242
return new NodeLabel(name);
4343
}
4444

45+
public static String toString(NodeLabel nodeLabel) {
46+
return nodeLabel.name();
47+
}
48+
4549
public static Collection<NodeLabel> listOf(@NotNull String... nodeLabels) {
4650
return Arrays.stream(nodeLabels).map(NodeLabel::of).collect(Collectors.toList());
4751
}

0 commit comments

Comments
 (0)