ngng628's Library

This documentation is automatically generated by online-judge-tools/verification-helper

:warning: src/nglib/graph/weighted_edge.cr

Required by

Code

module NgLib
  struct Edge
    @data : {Int64, Int64}

    def initialize(t : Int64, w : Int64)
      @data = {t, w}
    end

    def self.to
      @data[0]
    end

    def self.weight
      @data[1]
    end

    def [](i : Int)
      @data[i]
    end
  end
end
module NgLib
  struct Edge
    @data : {Int64, Int64}

    def initialize(t : Int64, w : Int64)
      @data = {t, w}
    end

    def self.to
      @data[0]
    end

    def self.weight
      @data[1]
    end

    def [](i : Int)
      @data[i]
    end
  end
end
Back to top page