Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ class MaxWeightPathExpander implements PathExpander<Double>
filtered.add(relationship);
}
}
return Iterables.asResourceIterable(filtered);
return ResourceIterable.of(filtered);
}

@Override
Expand All @@ -381,6 +381,8 @@ class MaxWeightPathExpander implements PathExpander<Double>
}
----

`ResourceIterable.of` is available starting from Neo4j 2026.03.

Here is an example of how to use the custom `PathExpander` and set the initial state:

[source, java, role="nocopy"]
Expand Down