Update src/lib/graph-view.ts
Co-authored-by: qodo-code-review[bot] <151058649+qodo-code-review[bot]@users.noreply.github.com>
This commit is contained in:
parent
8def5ae1a3
commit
3834a5638c
1 changed files with 1 additions and 1 deletions
|
|
@ -425,7 +425,7 @@ export function detectDependencyCycles(model: GraphModel): CycleAnomaly {
|
||||||
const cycleKeys = new Set<string>();
|
const cycleKeys = new Set<string>();
|
||||||
const cycles: string[][] = [];
|
const cycles: string[][] = [];
|
||||||
|
|
||||||
const relevantEdges = model.edges.filter((e) => e.type === 'blocks');
|
const relevantEdges = [...model.edges]; // include all edge types for cycle detection
|
||||||
const adj = new Map<string, string[]>();
|
const adj = new Map<string, string[]>();
|
||||||
for (const node of model.nodes) {
|
for (const node of model.nodes) {
|
||||||
adj.set(node.id, []);
|
adj.set(node.id, []);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue