dmbaturin / ocaml-tsort Goto Github PK
View Code? Open in Web Editor NEWEasy to use and user-friendly topological sort module for OCaml
License: MIT License
Easy to use and user-friendly topological sort module for OCaml
License: MIT License
Consider the following dependencies: 1 -> 2, 3 and 2 -> 1. A natural but inappropriate way to specify it is [(1, [2]); (2, [1]); (1, [3])]
, in other words, a list where each pair expresses some possibly incomplete dependency. The current behaviour of Tsort
on these is not consistent: sometimes it rejects the input with an assert false
and sometimes it computes the meaningful output.
utop # let l = [(1, [3]); (2, [1]); (1, [2])];;
val l : (int * int list) list = [(1, [3]); (2, [1]); (1, [2])]
──────────────
utop # Tsort.sort_strongly_connected_components l;;
- : int list list = [[3]; [2; 1]]
──────────────
utop # let l = [(1, [2]); (2, [1]); (1, [3])];;
val l : (int * int list) list = [(1, [2]); (2, [1]); (1, [3])]
──────────────
utop # Tsort.sort_strongly_connected_components l;;
Exception: Assert_failure ("src/lib/tsort.ml", 287, 22).
It would be nice to
I'd like to set up CircleCI before making a release. It's free for open-source projects and would give us a guarantee that a release will work for a desired range of OCaml versions.
It requires the github project owner to:
The setup will consist in adding a .circleci
folder to the github project, which CircleCI will use to build the project with every commit and notify us if something fails. See https://github.com/mjambon/dune-deps/tree/master/.circleci for an example.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.