Move directed graph into external project