apoc.result.DistancePathResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apoc-common Show documentation
Show all versions of apoc-common Show documentation
Data types package for Neo4j Procedures
package apoc.result;
import org.neo4j.graphdb.Path;
public class DistancePathResult implements Comparable {
public final Path path;
public final double distance;
public DistancePathResult(Path path, double distance) {
this.path = path;
this.distance = distance;
}
@Override
public int compareTo(DistancePathResult o) {
return o.distance < this.distance ? 1 : -1;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy