All Downloads are FREE. Search and download functionalities are using the official Maven repository.

apoc.result.DistancePathResult Maven / Gradle / Ivy

There is a newer version: 5.25.1
Show newest version
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