checkCircularDependencies method
Detects circular dependencies in the architecture graph. Returns a list of human-readable warning strings.
Implementation
List<String> checkCircularDependencies(ArchitectureGraph graph) {
final cycles = graph.findCycles();
return cycles.map((cycle) {
final labels = cycle
.map((nodeId) => _displayName(graph, nodeId))
.toList();
return '⚠️ Circular dependency detected: ${labels.join(' → ')}';
}).toList();
}