Add missing dependencies
Use an enum for NodeRelation, it already does everything we need