From: Emden Gansner Date: Wed, 5 Apr 2017 21:52:56 +0000 (-0400) Subject: Add comment noting that feasible_tree() needs to return 1 if the graph is X-Git-Tag: 2.42.0~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc079e5bc5cb73e93d3f0326e5bae5822f210044;p=graphviz Add comment noting that feasible_tree() needs to return 1 if the graph is disconnected; fix small type on another comment. --- diff --git a/lib/common/ns.c b/lib/common/ns.c index 7a3c07e03..b06344672 100644 --- a/lib/common/ns.c +++ b/lib/common/ns.c @@ -484,6 +484,7 @@ subtree_t *merge_trees(Agedge_t *e) /* entering tree edge */ /* Construct initial tight tree. Graph must be connected, feasible. * Adjust ND_rank(v) as needed. add_tree_edge() on tight tree edges. * trees are basically lists of nodes stored in nodequeues. + * Return 1 if input graph is not connected; 0 on success. */ static int feasible_tree(void) @@ -787,7 +788,7 @@ graphSize (graph_t * g, int* nn, int* ne) * Out and in edges lists stored in ND_out and ND_in, even if the node * doesn't have any out or in edges. * The node rank values are stored in ND_rank. - * Returns 0 if successful; returns 1 if `he graph was not connected; + * Returns 0 if successful; returns 1 if the graph was not connected; * returns 2 if something seriously wrong; */ int rank2(graph_t * g, int balance, int maxiter, int search_size)