cs.LGOct 5, 2026

Constrained Goal-directed Planar Graph Generation with Grammar-based Reinforcement Learning

Authors: Nicolas Hochuli, Lorenzo Miele, Kristina Shea, Tino Stankovic

Organizations: Engineering Design and Computing Laboratory ETH Zürich

Abstract

Planar graphs are central to applications across science and engineering, yet existing generators provide limited support for goal-directed generation under hard structural and geometric feasibility constraints. We propose a dataset-free method for generating planar graph embeddings by combining parametric graph grammars with safe reinforcement learning to optimize generic task-specific objectives while satisfying constraints during construction. We formulate the generation process as a constrained Markov decision process, where the graph grammar defines the state and action spaces. We further introduce an action projection that maps sampled actions toward state-dependent safe sets, improving constraint satisfaction during training. In contrast to classical graph generators and deep generative models, which typically offer limited goal-directed control or rely on weak constraint satisfaction, our method constructs feasible planar graph embeddings directly during generation. We also introduce a benchmark suite for constrained and goal-directed planar graph generation, together with classical and deep generative baselines. Across all benchmark tasks, our method consistently outperforms baselines while satisfying the formulated constraints.

Figures & tables

Appendix figures & tables18 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Fine-Grained Graph Generation through Latent Mixture Scheduling

    May 4, 2026Nidhi Vakil, Hadi AmiriGraph GenerationGenerative Modeling

  2. DiG-Plan: Mitigating Early Commitment for Tool-Graph Planning via Diffusion Guidance

    Jun 4, 2026Yansi Li, Zhuosheng ZhangDiffusion-Based PlanningLLM Planning

  3. Self-Improvement for Fast, High-Quality Plan Generation

    May 5, 2026Robert Gieselmann, Henrike von Huelsen, Mihai Samson +9Symbolic PlanningGenerative Modeling