-
igraph's high-level interfaces follow the zero-based / one-based indexing convention of their host languages. The C library and the Python interface use zero-based indexing. The R and Mathematica interfaces use one-based indexing. How is this handled here? Julia is one-based. Are indexes shifted accordingly before passing them to the igraph C library? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The C interface in The Julia API for the wrapper struct |
Beta Was this translation helpful? Give feedback.
The C interface in
IGraphs.LibIGraph
is undisturbed, just wrapped directly, and remains 0-based.The Julia API for the wrapper struct
IGraphs.IGraph
which implements theGraphs.jl
interface is 1-based.