Directed acyclic graphs for Ruby