toposort-class
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -89,3 +89,3 @@ /** | ||
}).forEach(function(e) { | ||
visit(e[1], predsCopy, i); | ||
i = visit(e[1], predsCopy, i); | ||
}); | ||
@@ -92,0 +92,0 @@ |
{ | ||
"name": "toposort-class", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Topological sort of directed acyclic graphs (like dependecy lists)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,2 +10,3 @@ # Toposort | ||
Let's say you have the following dependency graph: | ||
* Plugin depends on Backbone and jQuery UI Button; | ||
@@ -18,2 +19,3 @@ * Backbone depends on jQuery and Underscore; | ||
Now, how would you sort this in a way that each asset will be correctly placed? You'll probably need the following sorting: | ||
* `jQuery`, `jQuery UI Core`, `jQuery UI Widget`, `jQuery UI Button`, `Underscore`, `Backbone`, `Plugin` | ||
@@ -63,2 +65,2 @@ | ||
## Legal | ||
MIT License | ||
MIT License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4924
64