Representing app feature dependencies in neo4j?

Hi everyone,

I’m trying to map out how different features inside a mobile app depend on each other, but I’m struggling with how to structure those dependencies in Neo4j without creating a spaghetti-like graph. Some features only activate after others, and a few have optional branches, so I’m not sure if I should model them as simple relationships or treat them as separate states.

To explain the type of feature flow I’m referring to, here’s something similar to the kind of app feature structure I had in mind, Is this type of feature flow I was thinking about.

Has anyone handled conditional or dependency-based feature relationships in Neo4j? Would love to hear how you approached it.