core.py path_retro()'s call to lgs.sptPathRetro takes a graph or SPT?

8 views
Skip to first unread message

Timothy Wu

unread,
Jul 18, 2012, 7:12:00 PM7/18/12
to graph...@googlegroups.com
Hi,

In core.py, under def path_retro(self,origin) of class ShortestPathTree(CShadow) on line 362:

path_pointer = lgs.sptPathRetro( self.soul, origin )

I'm confused. sptPathRetro in graph.c is defined as

Path * sptPathRetro(Graph* g, char* origin_label);

which takes a Graph* as the first argument, but I thought self.soul corresponds to c struct ShortestPathTree. How does that work?

Timothy
Reply all
Reply to author
Forward
0 new messages