From b2ac558fc9659e38d368631e8e0b6c66ba7c54e6 Mon Sep 17 00:00:00 2001 From: David Wehr <dawehr@iastate.edu> Date: Sat, 1 Apr 2017 22:09:16 -0500 Subject: [PATCH] Clarified comment --- quad/src/computation_graph/computation_graph.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quad/src/computation_graph/computation_graph.c b/quad/src/computation_graph/computation_graph.c index 527035eed..f20a0d0f5 100644 --- a/quad/src/computation_graph/computation_graph.c +++ b/quad/src/computation_graph/computation_graph.c @@ -186,7 +186,8 @@ double graph_get_output(const struct computation_graph *graph, int node_id, int /* * Assumptions: The node passed in is a valid ID (should be checked before passing) * and all node sources are either valid node-output pairs, or the source node ID == -1 - * This function does not check those assumptions for speed + * These constraints should be satisfied by using the graph_set_source function, so long as + * a valid node ID is passed in to the first call of this function */ void graph_compute_node_rec(struct computation_graph *graph, int node_id, int depth) { if (depth >= GRAPH_MAX_DEPTH) { -- GitLab