{"id":19506805,"url":"https://github.com/calvinlfer/dag-validator","last_synced_at":"2025-07-01T08:07:48.248Z","repository":{"id":68736723,"uuid":"137930988","full_name":"calvinlfer/dag-validator","owner":"calvinlfer","description":"A simple Directed Acyclic Graph validator that detects if cycles are present","archived":false,"fork":false,"pushed_at":"2018-06-19T18:51:27.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T05:07:24.981Z","etag":null,"topics":["dag","fp","functional-programming","scala"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/calvinlfer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-19T18:36:48.000Z","updated_at":"2018-06-19T18:51:28.000Z","dependencies_parsed_at":"2023-03-15T04:01:39.624Z","dependency_job_id":null,"html_url":"https://github.com/calvinlfer/dag-validator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/calvinlfer/dag-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calvinlfer%2Fdag-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calvinlfer%2Fdag-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calvinlfer%2Fdag-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calvinlfer%2Fdag-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calvinlfer","download_url":"https://codeload.github.com/calvinlfer/dag-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calvinlfer%2Fdag-validator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262924966,"owners_count":23385460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dag","fp","functional-programming","scala"],"created_at":"2024-11-10T22:38:29.330Z","updated_at":"2025-07-01T08:07:48.229Z","avatar_url":"https://github.com/calvinlfer.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Directed Acyclic Graph Validator ##\n*Cycle detection for DAGs*\n\n[![Build Status](https://travis-ci.org/calvinlfer/dag-validator.svg?branch=master)](https://travis-ci.org/calvinlfer/dag-validator)\n\n### Example Usage ###\nHere is an example of an valid directed graph which has no cycles\n```scala\nimport com.experiments.calvin.dag.DagValidator\nobject Dag extends DagValidator \nimport Dag._\n\nval graph: Graph[Int] = Graph(\n  1 -\u003e List(2, 3),\n  2 -\u003e List(3),\n  3 -\u003e Nil\n)\ndetectCycle(graph) \n// false\n```\n\nHere's an example of a graph with cycles\n```scala\nimport com.experiments.calvin.dag.DagValidator\nobject Dag extends DagValidator \nimport Dag._\n\nval graphWithCycle: Graph[String] = Map(\n  \"A\" -\u003e List(\"B\"),\n  \"B\" -\u003e List(\"C\"),\n  \"C\" -\u003e List(\"E\"),\n  \"E\" -\u003e List(\"F\", \"D\"),\n  \"D\" -\u003e List(\"B\"),\n  \"F\" -\u003e Nil\n)\n\ndetectCycle(graphWithCycle) \n// true\n```\n\n### Credits ###\n* [Tushar Roy](https://www.educative.io/page/11000001/60001)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalvinlfer%2Fdag-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalvinlfer%2Fdag-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalvinlfer%2Fdag-validator/lists"}