- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs
Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
9 lines
246 B
JavaScript
9 lines
246 B
JavaScript
import tarjan from './tarjan';
|
|
|
|
var findCycles = function findCycles(graph) {
|
|
return tarjan(graph).filter(function (cmpt) {
|
|
return cmpt.length > 1 || cmpt.length === 1 && graph.hasEdge(cmpt[0], cmpt[0]);
|
|
});
|
|
};
|
|
|
|
export default findCycles; |