Skip to content

Commit 1575cae

Browse files
committed
Fix inputRelationship count returned in ToUndirected
1 parent e9a99d6 commit 1575cae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/modules/ROOT/pages/graph-catalog-relationship-ops.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ YIELD
685685
[opts="header"]
686686
|===
687687
| inputRelationships | relationshipsWritten
688-
| 19 | 18
688+
| 9 | 18
689689
|===
690690
--
691691

proc/beta/src/main/java/org/neo4j/gds/beta/undirected/ToUndirectedSpec.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ protected AbstractResultBuilder<MutateResult> resultBuilder(
6565
ComputationResult<ToUndirected, SingleTypeRelationships, ToUndirectedConfig> computeResult,
6666
ExecutionContext executionContext
6767
) {
68-
return new MutateResult.Builder().withInputRelationships(computeResult.graph().relationshipCount());
68+
return new MutateResult.Builder().withInputRelationships(computeResult
69+
.graphStore()
70+
.relationshipCount(RelationshipType.of(computeResult.config().relationshipType())));
6971
}
7072

7173
@Override

0 commit comments

Comments
 (0)