| igraph Reference Manual |
|---|
typedef enum {
IGRAPH_SUCCESS = 0,
IGRAPH_FAILURE = 1,
IGRAPH_ENOMEM = 2,
IGRAPH_PARSEERROR = 3,
IGRAPH_EINVAL = 4,
IGRAPH_EXISTS = 5,
IGRAPH_EINVEVECTOR = 6,
IGRAPH_EINVVID = 7,
IGRAPH_NONSQUARE = 8,
IGRAPH_EINVMODE = 9,
IGRAPH_EFILE = 10,
IGRAPH_UNIMPLEMENTED = 12,
IGRAPH_INTERRUPTED = 13,
IGRAPH_DIVERGED = 14,
IGRAPH_ARPACK_PROD = 15,
IGRAPH_ARPACK_NPOS = 16,
IGRAPH_ARPACK_NEVNPOS = 17,
IGRAPH_ARPACK_NCVSMALL = 18,
IGRAPH_ARPACK_NONPOSI = 19,
IGRAPH_ARPACK_WHICHINV = 20,
IGRAPH_ARPACK_BMATINV = 21,
IGRAPH_ARPACK_WORKLSMALL= 22,
IGRAPH_ARPACK_TRIDERR = 23,
IGRAPH_ARPACK_ZEROSTART = 24,
IGRAPH_ARPACK_MODEINV = 25,
IGRAPH_ARPACK_MODEBMAT = 26,
IGRAPH_ARPACK_ISHIFT = 27,
IGRAPH_ARPACK_NEVBE = 28,
IGRAPH_ARPACK_NOFACT = 29,
IGRAPH_ARPACK_FAILED = 30,
IGRAPH_ARPACK_HOWMNY = 31,
IGRAPH_ARPACK_HOWMNYS = 32,
IGRAPH_ARPACK_EVDIFF = 33,
IGRAPH_ARPACK_SHUR = 34,
IGRAPH_ARPACK_LAPACK = 35,
IGRAPH_ARPACK_UNKNOWN = 36,
IGRAPH_ENEGLOOP = 37
} igraph_error_type_t;
These are the possible valued returned by igraph functions.
Note that these are interesting only if you defined an error handler
with igraph_set_error_handler(). Otherwise the program is aborted
and the function causing the error never returns.
Values:
|
The function successfully completed its task. |
|
Something went wrong. You'll almost never meet this error as normally more specific error codes are used. |
|
There wasn't enough memory to allocate on the heap. |
|
A parse error was found in a file. |
|
A parameter's value is invalid. Eg. negative number was specified as the number of vertices. |
|
A graph/vertex/edge attribute is already installed with the given name. |
|
Invalid vector of vertex ids. A vertex id is either negative or bigger than the number of vertices minus one. |
|
Invalid vertex id, negative or too big. |
|
A non-square matrix was received while a square matrix was expected. |
|
Invalid mode parameter. |
|
A file operation failed. Eg. a file doesn't exist, or the user ha no rights to open it. |
|
Attempted to call an unimplemented or disabled (at compile-time) function. |
|
A numeric algorithm failed to converge. |
|
Matrix-vector product failed. |
|
N must be positive. |
|
NEV must be positive. |
|
NCV must be bigger. |
|
Maximum number of iterations should be positive. |
|
Invalid WHICH parameter. |
|
Invalid BMAT parameter. |
|
WORKL is too small. |
|
LAPACK error in tridiagonal eigenvalue calculation. |
|
Starting vector is zero. |
|
MODE is invalid. |
|
MODE and BMAT are not compatible. |
|
ISHIFT must be 0 or 1. |
|
NEV and WHICH='BE' are incompatible. |
|
Could not build an Arnoldi factorization. |
|
No eigenvalues to sufficient accuracy. |
|
HOWMNY is invalid. |
|
HOWMNY='S' is not implemented. |
|
Different number of converged Ritz values. |
|
Error from calculation of a real Schur form. |
|
LAPACK (dtrevc) error for calculating eigenvectors. |
|
Unkown ARPACK error. |
|
Negative loop detected while calculating shortest paths. |
| << 3. Error codes | 3.2. igraph_strerror — Textual description of an error. >> |