Interface NESTGraphValidator

    • Method Detail

      • reset

        void reset()
        The method resets all values stored in the validator. This method is to be used when changes have been made to the graph object after validation by the validator.
      • hasUniqueEdgeIDs

        boolean hasUniqueEdgeIDs()
        This method checks if all edges in the graph have unique Ids.
        Returns:
        True, if all edge ids are unique.
      • hasUniqueNodeIDs

        boolean hasUniqueNodeIDs()
        This method checks if all nodes in the graph have unique Ids.
        Returns:
        True, if all node ids are unique.
      • hasFullyConnectedAndNoDuplicateEdges

        boolean hasFullyConnectedAndNoDuplicateEdges()
        This method checks that all edges have connections and that no edge is duplicated.
        Returns:
        True, if all edges are valid.
      • hasValidSemanticDescriptors

        boolean hasValidSemanticDescriptors()
      • getErrorMessage

        String getErrorMessage()
        This method outputs the collected error messages from previous methods as a String.
        Returns:
        A string containing all error messages. If the string is null, the graph was valid for all previous checks.
      • getGraph

        NESTGraphObject getGraph()
        This method returns the graph object for which the validator was created.
        Returns:
        The graph object for which the validator was created.