summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2012-06-04 00:37:12 -0400
committerDavid Rothstein <drothstein@gmail.com>2012-06-04 00:37:12 -0400
commit31a4cbdb0e804a66ef3f602450c872cefa949cbb (patch)
treef55f6419c34cd042f053432de33413def66aab6f
parentf209013a5181f6b4e6c435fcc796ee9825aedbc6 (diff)
downloadbrdo-31a4cbdb0e804a66ef3f602450c872cefa949cbb.tar.gz
brdo-31a4cbdb0e804a66ef3f602450c872cefa949cbb.tar.bz2
Issue #1503184 by aspilicious, Rob Loach, cweagans, Dave.Ingram: Make Graph.inc documentation clearer.
-rw-r--r--includes/graph.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/graph.inc b/includes/graph.inc
index 9ef86a145..35e683057 100644
--- a/includes/graph.inc
+++ b/includes/graph.inc
@@ -2,12 +2,12 @@
/**
* @file
- * Directed acyclic graph functions.
+ * Directed acyclic graph manipulation.
*/
/**
- * Performs a depth-first sort on a directed acyclic graph.
+ * Performs a depth-first search and sort on a directed acyclic graph.
*
* @param $graph
* A three dimensional associated array, with the first keys being the names
@@ -52,7 +52,7 @@ function drupal_depth_first_search(&$graph) {
// The components of the graph.
'components' => array(),
);
- // Perform the actual sort.
+ // Perform the actual search.
foreach ($graph as $start => $data) {
_drupal_depth_first_search($graph, $state, $start);
}
@@ -72,7 +72,7 @@ function drupal_depth_first_search(&$graph) {
}
/**
- * Performs a depth-first sort on a graph.
+ * Performs a depth-first search on a graph.
*
* @param $graph
* A three dimensional associated graph array.