Some basic graph operations now work with C
Changed cgraph_to_fgraph to a function instead of a subroutine