@@ -164,18 +164,14 @@ abstract class DirectedGraphBase<T extends Object> extends Iterable<T> {
164164 /// including cycles.
165165 /// * Returns an empty list if no path was found.
166166 /// * To exclude cycles use the method `shortestPath(start, target)` .
167- List <T > path (T start, T target) {
168- return crawler.path (start, target);
169- }
167+ List <T > path (T start, T target) => crawler.path (start, target);
170168
171169 /// Returns all paths from [start] to [target]
172170 /// including cycles.
173171 /// * Returns an empty list if no path was found.
174172 /// * To exclude cycles and list only the shortest paths
175173 /// use the method `shortestPaths(start, target)` .
176- List <List <T >> paths (T start, T target) {
177- return crawler.paths (start, target);
178- }
174+ List <List <T >> paths (T start, T target) => crawler.paths (start, target);
179175
180176 /// Returns the first cycle detected or an empty list
181177 /// if the graph is acyclic.
@@ -574,11 +570,12 @@ abstract class DirectedGraphBase<T extends Object> extends Iterable<T> {
574570 }
575571
576572 /// Returns a set containing the elements of [vertices]
577- /// in quasi topological insertion order if there is not mutual connection
578- /// between any two elements of [vertices] .
579- ///
573+ /// in quasi-topological insertion order.
580574 /// * [vertices] must be a subset of the graph vertices. If any vertex in
581575 /// [vertices] does not belong to the graph, `null` is returned.
576+ /// * Note: If A and B are any two elements of [vertices] ,
577+ /// and there is a path [A, ..., B] , then there be no path [B, ..., A]
578+ /// for a quasi-topological ordering to exists.
582579 /// * If sorted is set to
583580 /// `true` the vertices will be ordered using the graph [comparator] on top
584581 /// of the topological sort.
0 commit comments