Add node to computation graph by ID
All threads resolved!
All threads resolved!
Compare changes
@@ -9,11 +9,19 @@
@@ -46,12 +54,14 @@ static void reset_node_rec(struct computation_graph* graph, int node_id, int dep
@@ -59,12 +69,13 @@ int reset_node(struct computation_graph* graph, int node_id) {
@@ -82,7 +93,7 @@ int graph_set_source(struct computation_graph *graph,
@@ -95,16 +106,33 @@ int graph_add_node(struct computation_graph *graph,
@@ -124,15 +152,16 @@ int graph_add_node(struct computation_graph *graph,
@@ -141,27 +170,33 @@ int graph_set_param_val(struct computation_graph *graph, int node_id, int param_
@@ -197,17 +232,19 @@ void graph_compute_node_rec(struct computation_graph *graph, int node_id, int de
@@ -221,7 +258,8 @@ int export_dot(const struct computation_graph* graph, FILE* of, int print_output
@@ -254,3 +292,10 @@ int export_dot(const struct computation_graph* graph, FILE* of, int print_output