Class NoSuchVertexException

    • Method Detail

      • ofIndex

        public static NoSuchVertexException ofIndex​(int vertexIdx)
        Create a new exception of a missing vertex by its index.

        The index of a vertex is the index of the vertex in the IndexGraph of the graph, accessed by Graph.indexGraph(). In case the graph is an index graph, and identifier and the index of a vertex are the same.

        Parameters:
        vertexIdx - the index of the missing vertex
        Returns:
        the exception
      • ofVertex

        public static NoSuchVertexException ofVertex​(Object vertexId)
        Create a new exception of a missing vertex by its identifier.
        Parameters:
        vertexId - the identifier of the missing vertex
        Returns:
        the exception
      • ofVertex

        public static NoSuchVertexException ofVertex​(int vertexId)
        Create a new exception of a missing vertex by its int identifier.

        This is a specification of ofVertex(Object) for IntGraph.

        Parameters:
        vertexId - the identifier of the missing vertex
        Returns:
        the exception