Class NoSuchEdgeException

    • Method Detail

      • ofIndex

        public static NoSuchEdgeException ofIndex​(int edgeIdx)
        Create a new exception of a missing edge by its index.

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

        Parameters:
        edgeIdx - the index of the missing edge
        Returns:
        the exception
      • ofEdge

        public static NoSuchEdgeException ofEdge​(Object edgeId)
        Create a new exception of a missing edge by its identifier.
        Parameters:
        edgeId - the identifier of the missing edge
        Returns:
        the exception
      • ofEdge

        public static NoSuchEdgeException ofEdge​(int edgeId)
        Create a new exception of a missing edge by its int identifier.

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

        Parameters:
        edgeId - the identifier of the missing edge
        Returns:
        the exception