Node library for modelling a directed acyclic graph (DAG)