Class SolutionCompleteGraph

    • Constructor Detail

      • SolutionCompleteGraph

        public SolutionCompleteGraph()
    • Method Detail

      • add

        public void add​(byte indexNodeQuery,
                        byte indexNodeBase)
        Adds a pair of nodes to this solution.
        Parameters:
        indexNodeBase - index of the base node in the complete base graph.
        indexNodeQuery - index of the query node in the complete query graph.
      • getSizeHeap

        public int getSizeHeap()
      • getIndexBaseFromHeap

        public byte getIndexBaseFromHeap​(int indexOnHeapBase)
      • getIndexQueryFromHeap

        public byte getIndexQueryFromHeap​(int indexOnHeapQuery)
      • getIndexCorrespondingBaseNode

        public byte getIndexCorrespondingBaseNode​(int indexQueryNode)
      • getSolution

        public byte[] getSolution()
        The index is the index of the node in the query molecule. The value at 'index' is the index of the node in the base molecule.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getSimilarity

        public double getSimilarity()
      • setSimilarity

        public void setSimilarity​(double similarity)
      • setNodesQuery

        public void setNodesQuery​(int nodes)
        Only needed for the toString() method.
        Parameters:
        nodes -
      • getNodesQuery

        public int getNodesQuery()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object