Implementation of various algorithms on directed acyclic graphs.