We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 353e075 commit 6ba2fa6Copy full SHA for 6ba2fa6
src/sorted.js
@@ -7,7 +7,7 @@ import kahn from './kahn.js';
7
* Sort the vertices topologically breaking ties according to a given function.
8
*
9
* @param {Iterable<any>} edges - The input graph as a list of edges.
10
- * @param {(a: any, b: any) => Number} breakTies - The function to break ties.
+ * @param {Function} breakTies - The function to break ties.
11
* @returns {Iterable<any>} The vertices sorted in topological order.
12
*/
13
export default function sorted(edges, breakTies = undefined) {
0 commit comments