Skip to content

Commit c101dd9

Browse files
committed
Fix use of RelationshipType after rebase
1 parent 6a2c7b0 commit c101dd9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

core/src/main/java/org/neo4j/graphalgo/core/loading/GraphStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static GraphStore of(
9191
nodePropertyStores.put(nodeLabel, builder.build());
9292
});
9393

94-
Map<String, RelationshipPropertyStore> relationshipPropertyStores = new HashMap<>();
94+
Map<RelationshipType, RelationshipPropertyStore> relationshipPropertyStores = new HashMap<>();
9595
relationshipProperties.forEach((relationshipType, propertyMap) -> {
9696
RelationshipPropertyStore.Builder builder = RelationshipPropertyStore.builder();
9797
propertyMap.forEach((propertyKey, propertyValues) -> builder.putRelationshipProperty(
@@ -323,7 +323,7 @@ public void addRelationshipType(
323323
}
324324

325325
private void addRelationshipProperty(
326-
String relationshipType,
326+
RelationshipType relationshipType,
327327
String propertyKey,
328328
NumberType propertyType,
329329
HugeGraph.PropertyCSR propertyCSR,

core/src/test/java/org/neo4j/graphalgo/core/write/RelationshipExporterTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.neo4j.graphalgo.Orientation;
2727
import org.neo4j.graphalgo.PropertyMapping;
2828
import org.neo4j.graphalgo.RelationshipProjection;
29+
import org.neo4j.graphalgo.RelationshipType;
2930
import org.neo4j.graphalgo.StoreLoaderBuilder;
3031
import org.neo4j.graphalgo.TestDatabaseCreator;
3132
import org.neo4j.graphalgo.api.Graph;
@@ -104,7 +105,7 @@ void exportRelationshipsWithLongProperties() {
104105
.graphStore(NativeFactory.class);
105106

106107
RelationshipExporter
107-
.of(db, graphStore.getGraph("NEW_REL", Optional.of("newWeight")), RUNNING_TRUE)
108+
.of(db, graphStore.getGraph(RelationshipType.of("NEW_REL"), Optional.of("newWeight")), RUNNING_TRUE)
108109
.withRelationPropertyTranslator(relProperty -> Values.longValue((long) relProperty))
109110
.build()
110111
.write("NEW_REL", "newWeight");

0 commit comments

Comments
 (0)