> The point is to avoid the python overhead in calling the add/delete
> functions.  So yes, you would need to write your calls to the cython
> add/delete functions in Cython.

A simple example in the notebook:

%cython
from sage.graphs.base.c_graph cimport CGraph
from sage.all import graphs
G = graphs.PetersenGraph()
cdef CGraph C = G._backend._cg
print C.num_verts # a C int

> Jason



-- 
Robert L. Miller
http://www.rlmiller.org/

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to