๓ žราYc@s.dZdZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd „ƒYZd efd „ƒYZd efd „ƒYZdefd„ƒYZ defd„ƒYZ defd„ƒYZ defd„ƒYZ defd„ƒYZ defd„ƒYZdefd„ƒYZdS(sM ********** Exceptions ********** Base exceptions and errors for NetworkX. s…Aric Hagberg (hagberg@lanl.gov) Pieter Swart (swart@lanl.gov) Dan Schult(dschult@colgate.edu) Loรฏc Sรฉguin-C. tNetworkXExceptioncBseZdZRS(s&Base class for exceptions in NetworkX.(t__name__t __module__t__doc__(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyRst NetworkXErrorcBseZdZRS(s)Exception for a serious error in NetworkX(RRR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyRstNetworkXPointlessConceptcBseZdZRS(sจHarary, F. and Read, R. "Is the Null Graph a Pointless Concept?" In Graphs and Combinatorics Conference, George Washington University. New York: Springer-Verlag, 1973. (RRR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyR stNetworkXAlgorithmErrorcBseZdZRS(s3Exception for unexpected termination of algorithms.(RRR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyR'stNetworkXUnfeasiblecBseZdZRS(sdException raised by algorithms trying to solve a problem instance that has no feasible solution.(RRR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyR+stNetworkXNoPathcBseZdZRS(soException for algorithms that should return a path when running on graphs where such a path does not exist.(RRR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyR0stNetworkXNoCyclecBseZdZRS(sqException for algorithms that should return a cycle when running on graphs where such a cycle does not exist.(RRR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyR 5stNetworkXUnboundedcBseZdZRS(swException raised by algorithms trying to solve a maximization or a minimization problem instance that is unbounded.(RRR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyR :stNetworkXNotImplementedcBseZdZRS(sCException raised by algorithms not implemented for a type of graph.(RRR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyR ?st NodeNotFoundcBseZdZRS(s>Exception raised if requested node is not present in the graph(RRR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyR CstAmbiguousSolutioncBseZdZRS(s@Raised if more than one valid solution exists for an intermediary step of an algorithm. In the face of ambiguity, refuse the temptation to guess. This may occur, for example, when trying to determine the bipartite node sets in a disconnected bipartite graph when computing bipartite matchings. (RRR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyR Gs tExceededMaxIterationscBseZdZRS(sํRaised if a loop iterates too many times without breaking. This may occur, for example, in an algorithm that computes progressively better approximations to a value but exceeds an iteration bound specified by the user. (RRR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyRSstPowerIterationFailedConvergencecBseZdZd„ZRS(sีRaised when the power iteration method fails to converge within a specified iteration limit. `num_iterations` is the number of iterations that have been completed when this exception was raised. cOs>d}|j|ƒ}tt|ƒj}|||||ŽdS(Ns7power iteration failed to converge within {} iterations(tformattsuperRt__init__(tselftnum_iterationstargstkwtmsgt superinit((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyRfs(RRRR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyR]sN(Rt __author__t ExceptionRRRRRRR R R R R RR(((sh/private/var/folders/w6/vb91730s7bb1k90y_rnhql1dhvdd44/T/pip-build-w4MwvS/networkx/networkx/exception.pyt s