- Notifications
You must be signed in to change notification settings - Fork0
A Directed Asyclic Graph (DAG) resolver for Deno
License
NotificationsYou must be signed in to change notification settings
justinmchase/deno-dag
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A Directed Asyclic Graph (DAG) resolver for Deno
Based onKahn's algorithmfor topographical sorting.
import{topographicalSort}from"https://deno.land/x/dag/mod.ts";// A// / \// B C// \ /// Dconsttargets=[{name:"D"},{name:"A",dependencies:["B","C"]},{name:"C",dependencies:["D"]},{name:"B",dependencies:["D"]},];constsorted=topographicalSort(targets);console.log(sorted.map(({ name})=>name));// A,B,C,D
About
A Directed Asyclic Graph (DAG) resolver for Deno
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.