Class MSTInstance

java.lang.Object
es.urjc.etsii.grafo.io.Instance
es.urjc.etsii.grafo.MST.model.MSTInstance
All Implemented Interfaces:
Comparable<Instance>

public class MSTInstance extends Instance
  • Constructor Details

  • Method Details

    • v

      public int v()
    • e

      public int e()
    • getEdges

      public List<Edge> getEdges()
    • getEdges

      public List<Edge> getEdges(int node)
    • compareTo

      public int compareTo(Instance other)
      How should instances be ordered, when listing and solving them. If not implemented, defaults to lexicographic sort by instance name
      Specified by:
      compareTo in interface Comparable<Instance>
      Overrides:
      compareTo in class Instance
      Parameters:
      other - the other instance to be compared against this one
      Returns:
      comparison result