no need for topo in derivatives
fix test for bret
adding @in and @out nodes to the graph