Interface PrimsMinimumSpanningTree.Collector

  • All Known Implementing Classes:
    AbstractHDBSCAN.HeapMSTCollector
    Enclosing class:
    PrimsMinimumSpanningTree
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface PrimsMinimumSpanningTree.Collector
    Interface for collecting edges.
    Author:
    Erich Schubert
    • Method Detail

      • addEdge

        void addEdge​(double length,
                     int i,
                     int j)
        Add a new edge to the output.
        Parameters:
        length - Length of edge
        i - Source node
        j - Destination node