Class MSTEdge


  • public class MSTEdge
    extends java.lang.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 Detail

      • nativeObj

        protected final long nativeObj
    • Constructor Detail

      • MSTEdge

        protected MSTEdge​(long addr)
    • Method Detail

      • 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)
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable