This code is all in parse.cpp. dagman_main calls parse(); at the end, you have the dag nodes in memory.
 
 Probably need something about partial rescue dags here.
+
+(Note:  this has been changed to parse in two passes for the more flexible command ordering -- there's a ticket for this.)  Note that this is kind of tricky if INCLUDE commands are used...