Skip to content

Commit 93ccc92

Browse files
committed
add comment
1 parent 581bdc7 commit 93ccc92

File tree

1 file changed

+3
-0
lines changed
  • packages/cubejs-schema-compiler/src/compiler

1 file changed

+3
-0
lines changed

packages/cubejs-schema-compiler/src/compiler/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export function camelizeCube(cube: any): unknown {
5454
return cube;
5555
}
5656

57+
/**
58+
* This is a simple cube-views topological sorting based on Kahn's algorythm.
59+
*/
5760
export function topologicalSort(edges: GraphEdge[]): CubeDef[] {
5861
const graph = new Map();
5962
const outDegree = new Map();

0 commit comments

Comments
 (0)