Various directed acyclic graph (DAG) structures for Python