Class G

  • All Implemented Interfaces:
    IGraph
    Direct Known Subclasses:
    Gi

    public abstract class G
    extends UndirectedGraph
    Backtrackable undirected graph
    Since:
    01/01/2014
    Author:
    Jean-Guillaume Fages
    • Constructor Detail

      • G

        public G​(Model model,
                 int nbNodes)
        Creates a backtrackable undirected graph of nbNodes nodes
        Parameters:
        model - solver providing the backtracking environment
        nbNodes - size of the graph (number of nodes)
    • Method Detail

      • build

        public abstract void build()
        Initialises the graph
      • update

        public abstract void update()
        Updates the graph
      • update

        public abstract void update​(int idx)