cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Issue Extending Algorithm Class

Hi,

I am trying to write a simple modified BFS with an alternative stopping condition and want to base it off the single source shortest path implementation provided in the Neo4j Graph Algorithms library: https://github.com/neo4j-contrib/neo4j-graph-algorithms/blob/3.5/algo/src/main/java/org/neo4j/grapha....

However, trying to compile an exact copy of the ShortestPaths class is giving me errors related to generics and overriding that has stumped my googling thus far. Specifically, the error is:

error: MyShortestPaths is not abstract and does not override abstract method release() in Algorithm

This is caused by:

error: release() in MyShortestPaths cannot override release() in Algorithm
public MyShortestPaths release() {
return type MyShortestPaths is not compatible with void

I have not modified the class in any way except changing all instances of ShortestPaths to MyShortestPaths. Any help would be much appreciated.

Thanks.

I am using Neo4j Community v3.5.9, Neo4j Graph Algorithms Library v3.5.9.0 and Neo4j Java Driver v1.7.5.

0 REPLIES 0