Class MSTEdge

java.lang.Object
org.opencv.geometry.MSTEdge

public class MSTEdge extends Object
Represents an edge in a graph for Minimum Spanning Tree (MST) computation. Each edge connects two nodes (source and target) and has an associated weight.
  • Field Details

    • nativeObj

      protected final long nativeObj
  • Constructor Details

    • MSTEdge

      protected MSTEdge(long addr)
  • Method Details

    • getNativeObjAddr

      public long getNativeObjAddr()
    • __fromPtr__

      public static MSTEdge __fromPtr__(long addr)
    • get_source

      public int get_source()
    • set_source

      public void set_source(int source)
    • get_target

      public int get_target()
    • set_target

      public void set_target(int target)
    • get_weight

      public double get_weight()
    • set_weight

      public void set_weight(double weight)