cyclicDependencies
API / publicodes / utils / cyclicDependencies
function cyclicDependencies(rawRules): [GraphCycles, string[]]Defined in: packages/core/src/AST/graph.ts:72
Experimental
This function is useful so as to print the dependencies at each node of the cycle. ⚠️ Indeed, the findCycles function returns the cycle found using the Tarjan method, which is not necessarily the smallest cycle. However, the smallest cycle is more readable.
Parameters
| Parameter | Type | 
|---|---|
| rawRules | Partial | 
Returns
[GraphCycles, string[]]