Interface TentativeDistances

    • Method Detail

      • distance

        double distance​(long nodeId)
        Returns the distance for the given node or Double.MAX_VALUE if not set.
      • predecessor

        long predecessor​(long nodeId)
        Returns the predecessor for the given node or Long.MAX_VALUE if not set.
      • set

        void set​(long nodeId,
                 long predecessor,
                 double distance)
        Sets the distance and the predecessor for the given node.
      • compareAndExchange

        double compareAndExchange​(long nodeId,
                                  double expectedDistance,
                                  double newDistance,
                                  long predecessor)
        Atomically updates the distance and the predecessor for the given node. The method returns the witness value, which is the value we saw when attempting a store operation. If the witness value is the expected distance, the update for both, distance and predecessor, was successful.
      • distances

        org.neo4j.gds.core.utils.paged.HugeAtomicDoubleArray distances()
      • predecessors

        java.util.Optional<org.neo4j.gds.core.utils.paged.HugeAtomicLongArray> predecessors()