Custom Graph Creator is a Unity Editor extension for procedurally generating node-edge graphs for game design: dungeon and level layouts, quest or dialogue flows, skill trees, world maps, or any system built from connected nodes.You describe what you want, and the tool builds graphs that follow it:**1. Node types.** Create your own types (Hub, Shop, BossRoom...), each with a color. Mark a type as unique so it appears exactly once, cap how much of the graph it may take with a density limit, or disable it for a run without deleting it.**2. Affinity matrix.** Score every pair of types from -100 to +100 to say what should connect to what. Edges are directed, so A -> B and B -> A can have different values.**3. Shape.** Choose the number of nodes, how many cycles, how they link and whether everything must stay connected. The structure is built first, then every node gets a type.**4. Restrictions.** Add structural rules the graph has to follow: "BossRoom MUST be at a distance of 6 nodes Minimum of Hub", "Hub MUST be an articulation point", "Shop MUST be on every path between Hub and BossRoom"... Six rule types, each with MUST / MUST NOT. Rules guide the generation, can be enforced afterwards and add to the graph's score.**5. Algorithms.** Generate with Greedy (always the best-scoring type) or GRASP (a controlled random pick among the best candidates, keeping the best of many runs). Then polish the result with local search, which changes node types or rewires edges without ever breaking a rule that was already met.**6. Graph viewer.** Inspect the result in a force-directed viewer and check its score, broken down into affinity and each rule.The whole flow can also run from a single component in your scene, so you can generate and compare graphs repeatedly.Everything is stored as ScriptableObjects (node types, matrix, rules, parameters and results), so the data is editable, versionable and easy to read from your own systems.






