betaFeedback

WorksComputer Science

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

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.

Introduction

Goal-directed planar graph generation is a central research topic in computer science, with applications spanning urban planning and road-network design [1, 2, 3], engineering design, including architecture, structural optimization, origami design [4, 5, 6, 7, 8] as well as computational mesh-generation [9]. In many of these applications, graphs are not merely abstract combinatorial representations of relational data, but require explicit planar embeddings whose structure must be optimized for task-specific objectives under hard structural and geometric constraints. Despite this need, methods for systematically generating goal-directed embedded planar graphs while enforcing hard constraints remain limited in performance or tailored to domain-specific settings [10].

Classical graph generators [11, 12, 13] and specialized planar graph generators [14, 15] provide tractable random graph models, including samplers for well-defined planar graph families. However, they are not generally designed for goal-directed multi-objective optimization nor do they construct

Preprint. valid planar graph embeddings under hard constraints. Deep generative models [10, 16, 17] can learn graph distributions and support property-conditioned generation [18], but they require training data which induces distributional biases and typically handle hard structural or geometric feasibility through soft conditioning, rejection sampling or post-processing. In contrast, autoregressive models, reinforcement learning, and hybrids of both have been used for sequential graph construction under hard validity constraints, especially in molecular design [19, 20, 21, 22, 23]. Yet many of these methods rely on discrete topological actions or domain-specific validity rules with relatively small graph instances, leaving generic and larger scale goal-directed generation of embedded planar graphs under hard constraints an open challenge.

Here, we propose a generic dataset-free method for goal-directed embedded planar graph generation across varying graph sizes. The method combines parametric graph grammars with safe reinforcement learning (Figure 1). We formulate the generation process as a Constrained Markov Decision Process (CMDP) whose state and action spaces are induced by the grammar. The grammar defines graph rewriting rules with continuous parameters, while an agent learns to apply these rules sequentially to optimize user-specified multi-objective rewards. Since graph size is controlled directly through sequential rule applications and termination criteria, our method can generate graphs with an exact prescribed number of nodes, a requirement that is difficult to enforce in many distributional graph generators. To improve feasibility during learning, we introduce a differentiable action projection that maps sampled actions toward state-dependent safe sets. The method constructs the planar embedding subject to hard constraints during generation, enabling controllable synthesis of planar graph embeddings for settings where multiple optimization objectives jointly matter. We additionally propose a new benchmark suite for constrained goal-directed embedded planar graph generation, that covers a wide variety of graph properties involving geometric, topological and spectral graph metrics.

Figure 1. Sequential planar graph generation. Starting from an initial graph G0G_0, a policy samples rule-based actions at∼π(at∣Gt)a_t \sim\pi(a_t \mid G_t) from a safe action space, enabling valid graph generation at each step. Actions modify graphs topologically and geometrically based on a predefined graph grammar.

Preliminaries

In this section we introduce parametric graph grammars, as well as their relation to Markov Decision Processes (MDP), to provide the basis for the definition of our method.

Graph Grammars

Graph grammars provide a rule-based formalism for the generation of structured graphs via sequential graph rewriting [24]. We adopt this formalism to model graph construction in which graph states, admissible rule application sites, and parametric rules are explicitly defined. In the following, we formalize the notion of graph states, introduce a parametric graph grammar, and define the graph transition operator that induces state-to-state evolution.

Graph states. At each discrete step t∈Nt \in\mathbb{N} in the rewriting process, we define a graph in its respective state as Gt=(Vt,Etd,Etb,Ft)G_t = (V_t, E_t^d, E_t^b, F_t), where VtV_t is the node set, EtdE_t^d is a set of directed edges forming a directed acyclic graph (DAG), EtbE_t^b is a set of undirected boundary edges encoding the planar embedding, Ft∈R∣Vt∣×mF_t \in\mathbb{R}^{|V_t| \times m} assigns mm-dimensional feature vectors to nodes, including planar coordinates. All graphs considered in this work are finite, connected and planar. The primary reason for the DAG formulation is the efficient detection of the generative frontier of a graph state GtG_t which is defined as the set of leaf nodes vtb∈Vtbv_t^b \in V_t^b, called boundary nodes, with

Vtb={v∈Vt∣deg⁡Etd−(v)≥1∧deg⁡Etd+(v)=0},(1)V_t^b = \left\{v \in V_t \mid\deg_{E_t^d}^{-}(v) \ge1 \land\deg_{E_t^d}^{+}(v) = 0\right\}, \tag*{(1)}

The boundary nodes vtbv_t^b are the only locations at which graph rewriting may be applied.

Parametric graph grammar. The graph generation process is directed by a parametric graph grammar G=(G0,P,Θ)\mathcal{G} = (G_0, \mathcal{P}, \Theta), where G0G_0 is an initial graph state, P\mathcal{P} is a finite set of rewriting rules, and Θ\Theta assigns to each rule p∈Pp \in\mathcal{P} a continuous parameter space Θ(p)\Theta(p) that spans the geometry of a graph in terms of edge lengths ℓ\ell and sector angles α\alpha. Each rewriting rule pp is a production p:L→Rp : L \to R defining a subgraph LL to be matched and replaced from a graph in state GtG_t using the subgraph in RR. A match gt:L→Gtg_t : L \to G_t is a graph morphism that identifies a node in the generative frontier such that gt(VL)⊆Vtbg_t(V_L) \subseteq V_t^b. Since each left-hand side LL contains exactly one boundary node, a match gtg_t uniquely determines the admissible rule application site as a boundary node vtb:=gt(v)v_t^b := g_t(v), where v∈VLv \in V_L. The set P\mathcal{P} comprises seven rewriting rules, that we detail in Appendix § 9.

Graph transition operator. At discrete step tt, a transition T\mathcal{T} is determined by selecting (i) a rule pt∈Pp_t \in\mathcal{P}, (ii) an admissible match gtg_t, and (iii) a continuous parameter vector θt∈Θ(pt)\theta_t \in\Theta(p_t). These choices induce a direct graph transformation, denoted by Gt⇒TGt+1G_t \xRightarrow{\mathcal{T}} G_{t+1}. Equivalently, the successor state can be written as Gt+1=T(Gt;pt,gt,θt)G_{t+1} = \mathcal{T}(G_t; p_t, g_t, \theta_t), where T\mathcal{T} denotes the graph transition operator (see Figure 1). Operationally, T\mathcal{T} introduces new nodes, adds directed edges, updates boundary edges, and assigns planar coordinates to newly created nodes according to the selected rule and its associated parameters. The details regarding the graph transition operator are provided in Appendix § 9. The graph rewriting process terminates at a finite time TT when a termination criterion is satisfied, such as reaching a prescribed number of nodes in GTG_T.

Constrained Markov Decision Processes

We briefly review CMDPs, which provide a principled framework for safe sequential decision-making under hard feasibility constraints [25]. A CMDP is defined as the tuple (S,A,P,r,c,γ,ρ0)(\mathcal{S}, \mathcal{A}, P, r, c, \gamma, \rho_0), where S\mathcal{S} is the state space, A\mathcal{A} the action space, P:S×A×S→[0,1]P : \mathcal{S} \times\mathcal{A} \times\mathcal{S} \to[0,1] the transition kernel, r:S×A→Rr : \mathcal{S} \times\mathcal{A} \to\mathbb{R} the reward function, c:S×A→{0,1}c : \mathcal{S} \times\mathcal{A} \to\{0,1\} constraints, γ∈[0,1)\gamma\in[0,1) the discount factor, and ρ0\rho_0 the initial-state distribution. A policy πϕ:S→P(A)\pi_\phi: \mathcal{S} \to\mathcal{P}(\mathcal{A}) is a mapping from states to a probability distribution over actions, where the objective of RL is to find a policy πϕ(at∣st)\pi_\phi(a_t|s_t) as the probability of taking action at∈Aa_t \in\mathcal{A} given the state st∈Ss_t \in\mathcal{S} at discrete step t∈Nt \in\mathbb{N} that maximizes the expected discounted cumulative reward as

max⁡ϕ Eτ∼πϕ[∑t=0Tγtr(st,at)]s.t.c(st+1)=0 ∀c∈C⊆{0,1}.(2)\max_{\phi}\ \mathbb{E}_{\tau\sim\pi_\phi}\left[\sum_{t=0}^{T}\gamma^t r(s_t,a_t)\right]\quad\text{s.t.}\quad c(s_{t+1})=0\ \forall c \in\mathcal{C}\subseteq\{0,1\}. \tag*{(2)}

where τ=(s0,a0,s1,a1,…)\tau= (s_0, a_0, s_1, a_1, \ldots) denotes a trajectory sampled from the policy πϕ\pi_\phi and C\mathcal{C} defines the constraint set. The policy is approximated using neural networks with parametrization ϕ\phi. In this work, constraints are enforced instantaneously: an action ata_t is admissible at state sts_t only if all c=0c = 0 and is otherwise disallowed [26]. CMDPs of this form can be equivalently viewed as Markov decision processes with state-dependent safe action sets Asafe(st)⊆A(st)\mathcal{A}_{\mathrm{safe}}(s_t) \subseteq\mathcal{A}(s_t) that respect all constraints in C\mathcal{C} for every action taken, i.e.

Asafe(st)={at∈A(st)∣c=0 ∀c∈C(st+1)}.(3)\mathcal{A}_{\mathrm{safe}}(s_t)=\{a_t\in\mathcal{A}(s_t)\mid c=0\ \forall c\in\mathcal{C}(s_{t+1})\}. \tag*{(3)}

In this setting, the constrained objective in Equation (2) can be relaxed to an unconstrained formulation, equivalent to standard MDPs.

Graph Grammars as CMDPs

The graph generation process introduced in § 2.1 implies a CMDP in which each rewriting step corresponds to a state transition. The CMDP state space S\mathcal{S} is defined as the set of all admissible intermediate graph states reachable from the initial graph in TT discrete steps under the grammar,

S={G∣G0⇒TTGT},(4)\mathcal{S}=\left\{G\mid G_0\xRightarrow[\mathcal{T}]{\mathcal{T}}G_T\right\}, \tag*{(4)}

while satisfying the constraints in C\mathcal{C} at each successive application of T\mathcal{T}. At a given state GtG_t, a safe hybrid action consists of selecting a graph rewriting action at=(gt,pt,θt)a_t=(g_t,p_t,\theta_t), at∈Asafea_t\in\mathcal{A}_{\mathrm{safe}} in line with the operator T\mathcal{T}. The transition kernel is deterministic and directed by the graph transition operator T\mathcal{T},

P(Gt+1∣Gt,at)=I{Gt⇒TGt+1}.(5)P(G_{t+1}\mid G_t,a_t)=\mathbb{I}\{G_t\xRightarrow{\mathcal{T}}G_{t+1}\}. \tag*{(5)}

which satisfies the necessary Markov property for CMDPs P(Gt+1∣Gt,at,…,G0,a0)=P(Gt+1∣Gt,at)P(G_{t+1}\mid G_t,a_t,\ldots,G_0,a_0)=P(G_{t+1}\mid G_t,a_t), since transitions depend only on the current state and action.

Summary. Under the formulation proposed in this section, the graph generation process using the graph grammar is equivalent to a CMDP subject to hard, instantaneous constraints, where states are represented as graphs and actions are defined as graph rewriting rule applications. We leverage this formulation in § 3 to develop a safe RL algorithm that preserves feasibility throughout generation.

Planar Graph Generation

Building on the CMDP formulation of the parametric graph grammar in § 2, we formalize planar graph generation as a constrained sequential decision-making problem. The grammar defines admissible matches and available graph transformations, while a learned policy coordinates the choice of specific match, rule selection and assignments of parameter values to generate graphs optimized for user-specified objectives. Therefore, RL with Proximal Policy Optimization (PPO) [27] is employed to learn a policy that maps the current graph state to a distribution over grammar-based actions, enabling informed decisions over long trajectories τ\tau. To efficiently account for constraints during learning and inference, we introduce a differentiable action projection mechanism that maps actions onto a learned safe set, enabling stable and sample-efficient policy optimization.

General Setup

The environment state at step tt is the graph state GtG_t. The state encodes the full graph topology, the generative frontier, the planar embedding, and node features. The initial state G0G_0 is defined by two boundary nodes connected by an edge of length 1 (see Figure 1). Based on the preliminaries, the environment dynamics are deterministic for admissible actions and all stochasticity arises from the policy. We adopt an actor-critic architecture in which both the actor and the critic operate on a separate graph state encodings using a geometry-aware Graph Neural Network (GNN)-based feature extractor that maps GtG_t to node- and graph-level feature representations. An overview of the architecture is shown in Figure 2 and explained in detail, including training, in Appendix § 10.

Figure 2. Illustration of the proposed Actor-Critic architecture.

Constraint Taxonomy

The graph generation process is subject to instantaneous feasibility constraints, which we explicitly categorize and relate to state-dependent safe action sets. We define the set of constraints as

C(Gt)={cℓ(Gt),cα(Gt),cdeg⁡(Gt),cpl(Gt)}(6)\mathcal{C}(G_t) = \{c_{\ell}(G_t), c_{\alpha}(G_t), c_{\deg}(G_t), c_{\mathrm{pl}}(G_t)\} \tag*{(6)}

where the first constraint cℓ(Gt)=0c_{\ell}(G_t)=0 if ℓ(e)∈[ℓmin⁡,ℓmax⁡] ∀e∈Etd∪Etb\ell(e) \in[\ell_{\min},\ell_{\max}] \ \forall e \in E_t^d \cup E_t^b, i.e. all edge lengths in the graph are within bounds, otherwise 1. The second constraint cα(Gt)=0c_{\alpha}(G_t)=0 if all αi(v)>αmin⁡ ∀v∈Vt\alpha_i(v) > \alpha_{\min} \ \forall v \in V_t representing minimum bounds on all sector angles αi\alpha_i between consecutive incident edges around all nodes vv of GtG_t, otherwise 1. The third constraint cdeg⁡(Gt)=0c_{\deg}(G_t)=0 if deg⁡(v)≤deg⁡max⁡ ∀v∈Vt\deg(v) \leq\deg_{\max} \ \forall v \in V_t, otherwise 1, representing maximum degree bounds on nodes. The last constraint cpl(Gt)c_{\mathrm{pl}}(G_t) checks whether the graph is drawn as a valid planar embedding, i.e. that no edge intersections occur, returns 0 if so, otherwise 1. Hence, a graph transition T\mathcal{T} is only admissible if c=0 ∀c∈C(T(Gt;at))c=0 \ \forall c \in\mathcal{C}(\mathcal{T}(G_t; a_t)).

We further decompose the constraint set as C=CT∪CG\mathcal{C}=\mathcal{C}_T\cup\mathcal{C}_G into topological and geometric constraints, respectively. Topological constraints CT\mathcal{C}_T enforce the structural admissibility of an action and cannot be resolved by changing the values of continuous parameters θt\theta_t after a rule ptp_t and a match gtg_t are determined. Such violations are intrinsic to the graph topology generated by a rewriting rule and therefore irreversible in our set-up. Geometric constraints CG\mathcal{C}_G, in contrast, correspond to violations that can, in principle, be resolved by finding the appropriate values of θt\theta_t given a rule ptp_t and a match gtg_t. These violations occur due to boundary edge-length violations in EtbE_t^b or edge intersections. In practice, violations of CTC_T occur infrequently (see Appendix § 11.§ 3) and thus can be simply handled by rejection sampling over the discrete components of the policy. In contrast, violations of CGC_G occur at a high rate, particularly edge intersections, and naive rejection sampling would lead to severe sampling inefficiency. This motivates the introduction of an explicit action projection mechanism that maps nominal parametrization of rules directly to a safe set A(Gt)→Asafe(Gt)\mathcal{A}(G_t) \to\mathcal{A}_{\mathrm{safe}}(G_t), see § 3.4.

State, Feature Extraction and Critic

Graph observation. At each discrete step, the environment returns the current graph state GtG_t with the corresponding node feature matrix Ft∈R∣Vt∣×mF_t \in\mathbb{R}^{|V_t| \times m}. Node features consist of (i) a binary boundary node indicator bib_i for each node, (ii) the integer node degree did_i, and (iii) a degree-invariant encoding of local sector angles using spherical harmonics, similar to [28, 29]. These are computed using the first K=4K = 4 Fourier harmonics as

hi=(cˉi,1,sˉi,1,…,cˉi,K,sˉi,K)∈R8,(7)h_i = (\bar{c}_{i,1}, \bar{s}_{i,1}, \ldots, \bar{c}_{i,K}, \bar{s}_{i,K}) \in\mathbb{R}^{8}, \tag*{(7)}

with cˉi,k=1di∑m=1dicos⁡(kαi,m)\bar{c}_{i,k} = \frac{1}{d_i} \sum_{m=1}^{d_i} \cos(k\alpha_{i,m}) and sˉi,k=1di∑m=1disin⁡(kαi,m)\bar{s}_{i,k} = \frac{1}{d_i} \sum_{m=1}^{d_i} \sin(k\alpha_{i,m}). Finally, we add the absolute two-dimensional node coordinates as yiy_i, and stack xi=(bi,di,hi,yi)x_i = (b_i, d_i, h_i, y_i) into FtF_t.

Graph feature extraction and Critic. To enable decision-making over graph states, the graph observation is encoded using E(2)-Equivariant Graph Neural Networks (EGNN) [30] that jointly processes graph structure and planar embedding, where we extract invariant features only. Prior to the EGNN, node attributes (bi,di,hi)(b_i, d_i, h_i) are lifted to a higher dimension via a small Multilayer Perceptron (MLP). To accommodate growing graph sizes, we adopt the Jumping Knowledge (JK) mechanism [31] with attentional aggregation scaled by graph size. The resulting node embeddings are combined with a global graph representation obtained via attention pooling [32] and mean pooling. These are concatenated into a set of node-wise features {Hi}i=1∣Vt∣\{H_i\}_{i=1}^{|V_t|}, which serve as input to the downstream agent. Further details on the feature extractor architecture are given in Appendix § 10.§ 1.

The critic employs an equivalent encoder architecture which is trained separately. In this setting, only the global graph representation is used, augmented with a learned embedding of the graph-size log⁡(1+∣Vt∣)\log(1 + |V_t|), and passed through a small MLP to predict the state value V(Gt)V(G_t).

Agent Design

We now define the hybrid agent design and the associated conditional policy, aligned with the semantics of the graph transition operator T(Gt;gt,pt,θt)\mathcal{T}(G_t; g_t, p_t, \theta_t). Architectural details on the policy networks are outlined in Appendix § 10.§ 2.

Conditional hybrid policy. At each discrete step, the agent applies a graph rewriting action

at=(gt,pt,θt)∈A(Gt)⊆Vtb×P×Θ(pt),(8)a_t = (g_t, p_t, \theta_t) \in\mathcal{A}(G_t) \subseteq V_t^b \times\mathcal{P} \times\Theta(p_t), \tag*{(8)}

where the policy is structured autoregressively. First, the agent samples a boundary node according to πϕ(gt∣Gt)\pi_{\phi}(g_t \mid G_t), implemented as a categorical distribution over boundary nodes masked by bib_i and approximated using an MLP with input {Hi}\{H_i\}. This yields vˉtb∼πϕ(gt∣Gt)\bar{v}_t^b \sim\pi_{\phi}(g_t \mid G_t).

Conditioned on vˉtb\bar{v}_t^b, the agent samples a rewriting rule from the categorical distribution pˉt∼ππ(pt∣vˉtb,Gt)\bar{p}_t \sim\pi_{\pi}(p_t \mid\bar{v}_t^b, G_t), which is another MLP with input HvˉtbH_{\bar{v}_t^b}, i.e. the node embedding for the selected rule application site. Since violations of CTC_T are rare at this stage (see Figure 7) but cannot be ruled out, we apply rejection sampling over ptp_t, advancing t→t+1t \to t + 1 with zero reward and no state transition, while signaling rejection to PPO through the discount γ<1\gamma< 1. With this approach, we limit (vˉtb,pˉt)(\bar{v}_t^b, \bar{p}_t) to the safe subset of Vtb×PV_t^b \times\mathcal{P}.

Impact of CMA-ES optimization with action projection on training performance

Figure 7. Impact of CMA-ES optimization with action projection on training performance. Constraint tightness refers to the same constraint set as described in § 5. All error-bars refer to 1-sigma standard deviations accross 5 seeds. (a) Wall-clock time per rollout at 50% of training for different graph sizes, with contributions from feature extraction (EGNN) and CMA-ES under loose and tight constraints. (b) Percentage of rollout time spent in CMA-ES during training. (c) Number of CMA-ES invocations per episode for different graph sizes and constraint tightness. (d) Success rate of CMA-ES in resolving geometric constraints. (e) CMA-ES invocations with learned vs. static projection (sψ=1s_{\psi} = 1, tψ=0t_{\psi} = 0). (f) Number of topological (CTC_{T}) and geometric (CGC_{G}) constraint violations during PPO (log scale). (g, h) Rejection sampling rate during training using tight and loose constraints.

Finally, conditioned on (vˉtb,pˉt)(\bar{v}_t^b, \bar{p}_t), the agent samples continuous parameters from θˉt∼πϕ(θt∣vˉtb,pˉt,Gt)\bar{\theta}_t \sim\pi_{\phi}(\theta_t \mid\bar{v}_t^b, \bar{p}_t, G_t). This distribution is obtained by transforming a nominal Gaussian qϕ(ξt∣⋅)=N(μϕ,σϕ2)q_{\phi}(\xi_t \mid\cdot) = \mathcal{N}(\mu_{\phi}, \sigma_{\phi}^{2}) via a push-forward tanh-affine map. The Gaussian mean is predicted by an MLP with input HvˉtbH_{\bar{v}_t^b} and pˉt\bar{p}_t, while the standard deviation is a global trainable parameter. For each rewriting rule, the dimensionality of the Gaussian dim⁡(Θ(p))\dim(\Theta(p)) is different, so we apply masking to retrieve rule-dependent distribution dimensions. The tanh-affine map projection serves two purposes: it enforces the boundedness θt∈(−1,1)\theta_t \in(-1,1), and it enables the approximate projection of nominal samples ξt\xi_t into the geometric safe set Asafe\mathcal{A}_{\mathrm{safe}} induced by CGC_G. We refer to this mechanism as action projection.

Action Projection. Nominal parametrizations ξt\xi_t with infinite support are projected using a diffeomorphism ηψ:Rdim⁡(Θ(pt))→(−1,1)dim⁡(Θ(pt))\eta_\psi: \mathbb{R}^{\dim(\Theta(p_t))} \to(-1,1)^{\dim(\Theta(p_t))}

θt=tanh⁡(sψ(Gt,gt,pt)⊙ξt+tψ(Gt,gt,pt)),(9)\theta_t = \tanh(s_\psi(G_t,g_t,p_t) \odot\xi_t + t_\psi(G_t,g_t,p_t)), \tag*{(9)}

where sψs_\psi and tψt_\psi are learned, state-dependent, scaling and shift functions with parameters ψ\psi. This construction is equivalent to a normalizing flow [33] with a single flow step followed by a tanh squashing. We found this one-step flow to be sufficient empirically. We further explain the construction of sψs_\psi and tψt_\psi in § 3.5. Applying the action projection to the policy’s distribution as πϕ(θt∣gt,pt,Gt)=ηψ#qϕ(ξt∣gt,pt,Gt)\pi_\phi(\theta_t|g_t,p_t,G_t)=\eta_{\psi\#}q_\phi(\xi_t|g_t,p_t,G_t) results in the push-forward measure

πϕ(θt∣⋅)=qϕ(ξt∣⋅)∣det⁡Jψ(gt,pt,Gt)∣−1,det⁡Jψ(gt,pt,Gt)=∏i(sψ,i(1−θt,i2))(10)\pi_\phi(\theta_t \mid\cdot) = q_\phi(\xi_t \mid\cdot)\left|\det J_\psi(g_t,p_t,G_t)\right|^{-1}, \qquad\det J_\psi(g_t,p_t,G_t)=\prod_i\left(s_{\psi,i}(1-\theta_{t,i}^2)\right) \tag*{(10)}

where the expression follows directly from the change-of-variables correction for densities and JψJ_\psi denotes the Jacobian ∂ηψ∂ξt(ξt)\frac{\partial\eta_\psi}{\partial\xi_t}(\xi_t), which is diagonal since the projector acts element-wise.

Joint policy. The resulting joint policy πϕ(at∣Gt)\pi_\phi(a_t \mid G_t) after action projection factorizes as

πϕ(at∣Gt)=πϕ(gt∣Gt)πϕ(pt∣gt,Gt)πϕ(θt∣gt,pt,Gt)=πϕ(gt∣Gt)πϕ(pt∣gt,Gt)qϕ(ξt∣gt,pt,Gt)∣det⁡Jψ(gt,pt,Gt)∣−1,(11)\begin{aligned} \pi_\phi(a_t \mid G_t)=\pi_\phi(g_t \mid G_t)\pi_\phi(p_t \mid g_t,G_t)\pi_\phi(\theta_t \mid g_t,p_t,G_t) \\ &=\pi_\phi(g_t \mid G_t)\pi_\phi(p_t \mid g_t,G_t)q_\phi(\xi_t \mid g_t,p_t,G_t)\left|\det J_\psi(g_t,p_t,G_t)\right|^{-1}, \tag*{(11)} \end{aligned}

which is then used in PPO for policy learning. To encourage exploration under PPO via an entropy bonus, we compute the entropy using the same factorization:

H[πϕ]=wgH[gt∣Gt]+wpEgt∼πϕ(⋅)[H[pt∣gt,Gt]]+wξEgt,pt∼πϕ(⋅)[H[ξt∣pt,gt,Gt]](12)\mathcal{H}[\pi_\phi]=w_g\mathcal{H}[g_t \mid G_t]+w_p\mathbb{E}_{g_t\sim\pi_\phi(\cdot)}[\mathcal{H}[p_t \mid g_t,G_t]]+w_\xi\mathbb{E}_{g_t,p_t\sim\pi_\phi(\cdot)}[\mathcal{H}[\xi_t \mid p_t,g_t,G_t]] \tag*{(12)}

We omit the Jacobian term due to missing closed-form entropy and because its Monte Carlo estimation can be noisy, and compute the continuous entropy over the nominal distribution qϕ(ξt∣⋅)q_\phi(\xi_t \mid\cdot). Categorical and continuous components are weighted by w(⋅)w_{(\cdot)} (set to 0.9 and 0.1, respectively). Policy MLPs are initialized with small final-layer weights and zero bias to encourage near-uniform initial exploration.

Action Projection Learning

The projection in Equation (9) specifies how nominal samples ξt\xi_t are mapped into bounded parameters θt∈(−1,1)\theta_t \in(-1,1), but it does not by itself specify where to project a given ξt\xi_t in order to satisfy geometric constraints. To obtain supervision for learning a projector that targets the admissible safe set Asafe\mathcal{A}_{\mathrm{safe}}, we run an efficient implementation of Covariance Matrix Adaptation - Evolutionary Strategy (CMA-ES) [34] inside the environment during graph rewriting on the continuous parameters θt′\theta'_t, with the projections’ initial guesses θˉt\bar{\theta}_t, to resolve potential violations of CGC_G using the formulation

θt∗=arg⁡min⁡θt′ ∥θt′−θˉt∥2s.t.c(T(Gt;gt,pt,θt))=0∀c∈CG,(13)\theta_t^*=\underset{\theta'_t}{\arg\min}\ \left\|\theta'_t-\bar{\theta}_t\right\|_2 \qquad\mathrm{s.t.}\quad c(\mathcal{T}(G_t;g_t,p_t,\theta_t))=0 \quad\forall c\in C_G, \tag*{(13)}

which follows the paradigm of safety-layer approaches in safe RL [26, 35]. The key idea is to find a proximal θt∗\theta_t^* to the projection’s previous guess θˉt\bar{\theta}_t, that satisfies the constraints, implemented via an explicit penalty-based formulation (see Equation (28) in the Appendix). The resulting candidate θt∗\theta_t^* is accepted only if all c=0c=0, otherwise we fall back to the rejection sampling scheme. Empirically, CMA-ES succeeds in 70–90% of cases to find such a θt∗\theta_t^*. If the projection’s guess θˉt\bar{\theta}_t is already admissible, we set θt∗=θˉt\theta_t^*=\bar{\theta}_t. Then, using the corrected θt∗\theta_t^* obtained from CMA-ES and nominal samples ξt\xi_t, we assemble an off-policy replay buffer to train the projection ηψ:ξt↦θt∗\eta_\psi:\xi_t\mapsto\theta_t^* in a supervised setting alongside PPO, which continuously refines the projection through CMA-ES correction. Ultimately, the action projector converges toward the admissible safe-set projection, CMA-ES corrections become in-frequent and act only as a fallback, as shown in Appendix § 11.§ 3, where we also provide computational overhead insights of CMA-ES. The projector architecture uses an equivalent graph feature extractor (as introduced in § 3.3) for GtG_t. Given the node embedding at a selected v⃗tb\vec{v}_t^b and a rule embedding for the selected p⃗t\vec{p}_t, we use two small MLPs to compute the scale sψs_\psi and shift tψt_\psi, with sψ>0s_\psi>0. The projector is trained synchronously with respect to the policy parameters. Details about architecture and training are given in Appendix § 11.

Reward Design

The reward function measures how closely the current graph satisfies a set of user-defined objectives, expressed through selected metrics (§ 5). Let M\mathcal{M} denote this set. For each metric m∈Mm \in\mathcal{M}, we compute a symmetric relative deviation (lower is better) where κ⋆\kappa^\star and κ\kappa denote the target and current values of metric mm, respectively, and ϵ>0\epsilon> 0 ensures numerical stability. The multiobjective reward rr, which encourages solutions that jointly satisfy all metrics, is then defined as

r=1−1∣M∣∑m∈Mdm,dm=∣κ⋆−κ∣∣κ⋆∣+∣κ∣+ϵ∈[0,1].(14)r = 1 - \frac{1}{|\mathcal{M}|} \sum_{m \in\mathcal{M}} d_m, \qquad d_m = \frac{|\kappa^\star- \kappa|}{|\kappa^\star| + |\kappa| + \epsilon} \in[0,1]. \tag*{(14)}

Related Works

Classical graph models such as Erdős-Rényi or Barabási-Albert graphs [11, 12], as well as specialized planar graph generators [14, 15], provide useful baselines and, in some cases, planarity guarantees at the abstract graph level. However, they are not designed for goal-directed multi-objective optimization or for constructing task-optimized planar embeddings under hard geometric constraints. Deep graph generative models can learn graph distributions with high distributional fidelity [10, 16, 17], and conditional or guided variants can bias samples toward desired properties [36, 37]. Models such as DiGress and GDSS with Prodigy guidance generate abstract graph structures and can be adapted to multi-objective and single-objective property-conditioned generation, respectively [38, 39, 40]. However, enforcing exact graph size, planarity, and hard structural constraints through conditioning remains difficult, with validity often relying on rejection sampling, post-processing, or external guidance [18]. TreeDiff [18] extends pretrained graph diffusion models with verifier-guided tree search at inference time but adapting it to embedded planar graphs requires task-specific modifications to the diffusion backbone, intermediate-state verifier, and search procedure. Geometry-aware models such as NeVAE and GeoDiff primarily target molecular domains and rely on chemistry-specific validity assumptions [41, 42]. MuDiff more directly couples discrete structure and continuous coordinates [43], but feasibility is still learned implicitly from data rather than enforced as a construction constraint.

Reinforcement learning provides a natural framework for goal-directed graph construction through sequential decisions [44, 45]. It has been widely used in molecular graph generation, where policies add atoms and bonds under chemistry-specific validity [2, 19, 20, 21]. Grammar- and rule-based RL has been applied to molecular optimization, where policies select productions from molecular grammars to preserve chemical validity [23, 46], to structural design, where grammar actions preserve domain-specific structural constraints [5, 8]. Outside generative settings, many graph-based RL methods focus on tasks such as adversarial attacks, knowledge-graph completion, or relational reasoning rather than generic graph generation [45]. It has also been applied to computation-graph optimization, where RL selects rules for neural-network subgraph rewriting [47]. These works demonstrate the value of structured action spaces. However, they mainly address discrete and structural domain-specific construction. Our distinguishing setting is the goal-directed generation of planar embedded graphs using hybrid discrete-continuous action spaces: the policy jointly selects a graph match, a rewriting rule, and safe continuous geometric parameters, thereby coupling discrete topological graph rewriting with continuous embedding optimization under state-dependent topological and geometric constraints.

Experiments

We evaluate our method in two stages. First, we introduce four multi-objective benchmarks to assess the method’s performance under varying geometric, topological and spectral objective as well as different constraint tightness. Second, we ablate the proposed action projection on a single-objective graph generation task and perform a scalability study. All results are averaged over 5 seeds with 1-sigma standard deviations reported for the rewards achieved by our method. Training was performed on an NVIDIA RTX PRO 6000 GPU, while the environment ran on an AMD 16-Core CPU; runtimes ranged from 10 minutes to 2 hours depending on benchmark complexity.

Benchmarks

To the best of our knowledge, no standardized benchmarks have been established for constrained, goal-directed generation of planar embedded graphs. Accordingly, the proposed benchmark suite comprises four heterogeneous tasks combining geometric, topological, and spectral metrics for constrained multi-objective optimization and varying graph sizes ∣G∣|G|, where all metrics used are defined in detail in Appendix § 12. Table 1 reports benchmark results and compares our method against the three best baselines out of all 10 reported in Appendix § 15. This includes the best results from the House of Graphs (HOG) dataset [48], which contains more than 4,000 planar graphs with graph size up to 250. Since HOG graphs are not embedded, we compute embeddings using a force-directed spring layout [49]. Further, we compare against three diffusion-based generators; DiGress, GDSS, and MuDiff [38, 39, 43] on the same dataset and report the strongest contender for each benchmark. These models were selected as they allow for conditional generation, in the case of DiGress and MuDiff, while GDSS can be guided towards graph size using Prodigy [40]. The classical generator baselines used are described in Appendix § 13. For all classical baselines, we apply ranking-based selection to retrieve graphs satisfying the most constraints and, among them, maximize the reward. For all deep generative baselines, we evaluate from 1000 generated candidates. After retaining the largest connected component and filtering out non-planar graphs, candidates are ranked first by proximity to the target graph size and then by benchmark reward. The remaining geometric and structural constraint statistics are evaluated and reported, but they are not used for candidate selection. This alternative protocol for deep generative models is motivated by the fact that we empirically found diffusion models to rarely satisfy the constraint set, and prioritizing constraint satisfaction would substantially reduce the reward performance of these models. We consequently exclude the constraint satisfaction criterion from the ranking procedure for diffusion baselines to enable a fairer comparison of reward metrics. More details on the evaluation protocol are available in Appendix § 14. For benchmark 1, 2, 4, we enforce a tight constraint set C2C_2 with ℓ∈[0.75,2.5]\ell\in[0.75, 2.5], αmin⁡=20∘\alpha_{\min} = 20^\circ, and degmax⁡=8\mathrm{deg}_{\max} = 8. For benchmark 3, we use the relaxed constraint set C1C_1 with ℓ∈[0.1,3.5]\ell\in[0.1, 3.5], αmin⁡=1∘\alpha_{\min} = 1^\circ and degmax⁡=15\mathrm{deg}_{\max} = 15 to allow for fairer comparison against unconstrained baselines.

BenchmarkGraphMethodRewardMetricsConstr.
1. Resilient Power Grid[graph]Target1.0r=1.0r=1.0, riso=1.0r_{\mathrm{iso}}=1.0, cgini=0.1c_{\mathrm{gini}}=0.1, cclust=0.2c_{\mathrm{clust}}=0.2, λ2=1.0\lambda_2=1.0∣G∣=50|G|=50, C2C_2 ✓
1. Resilient Power Grid[graph]Ours0.76 ± 0.0040.96, 0.09, 0.2, 0.0550, ✓ (4/4)
1. Resilient Power Grid[graph]HOG0.380.84, 0.03, 0.0, 0.0847, ✗ (3/4)
1. Resilient Power Grid[graph]Delaunay0.690.93, 0.18, 0.22, 0.0950, ✗ (2/4)
1. Resilient Power Grid[graph]GDSS0.560.50, 0.2, 0.16, 0.0143, ✗ (2/4)
2. Urban Road Grid[graph]Target1.0r=1.0r=1.0, riso=0.7r_{\mathrm{iso}}=0.7, Sl=0.8S_l=0.8, AR=0.2\mathrm{AR}=0.2∣G∣=80|G|=80, C2C_2 ✓
2. Urban Road Grid[graph]Ours0.94 ± 0.010.95, 0.82, 0.76, 0.1680, ✓ (4/4)
2. Urban Road Grid[graph]HOG0.780.4, 0.83, 0.49, 0.1680, ✗ (1/4)
2. Urban Road Grid[graph]Delaunay0.910.95, 0.76, 0.45, 0.280, ✗ (2/4)
2. Urban Road Grid[graph]MuDiff0.530.34, 0.01, 0.46, 0.2556, ✗ (1/4)
3. Strongly Connected Mesh[graph]Target1.0r=1.0r=1.0, rsquare=0.3r_{\mathrm{square}}=0.3, λ2\lambda_2 – –∣G∣=100|G|=100, C1C_1 ✓
3. Strongly Connected Mesh[graph]Ours0.65 ± 0.010.89, 0.06, – –100, ✓ (4/4)
3. Strongly Connected Mesh[graph]HOG0.360.54, 0.00, – –101, ✗ (3/4)
3. Strongly Connected Mesh[graph]Lattice0.591.0, 0.03, – –100, ✓ (4/4)
3. Strongly Connected Mesh[graph]GDSS0.390.55, 0.01, – –72, ✗ (3/4)
4. Graph with 40 Triangles[graph]Target1.0r=1.0r=1.0, riso=40r_{\mathrm{iso}}=40, TT – –∣G∣=60|G|=60, C2C_2 ✓
4. Graph with 40 Triangles[graph]Ours0.98 ± 0.020.92, 39.91, – –60, ✓ (4/4)
4. Graph with 40 Triangles[graph]HOG0.860.89, 64, – –60, ✓ (4/4)
4. Graph with 40 Triangles[graph]Boltzmann0.880.63, 38, – –60, ✗ (0/4)
4. Graph with 40 Triangles[graph]DiGress0.570.42, 15, – –10, ✗ (2/4)

Table 1. Benchmark results across four planar graph generation tasks. Each graph corresponds to the result obtained by our method. The table shows averaged multi-objective reward, the individual metrics, graph sizes and number of satisfied constraints for each benchmark. Evaluations for all 10 baselines are reported in Appendix § 15, complemented with per-baseline graph visualizations. Relative metric deviations from the targets are additionally provided in Appendix Table 12.

Resilient power grid in circular hull. This benchmark generates a 50-node power-grid-like graph inside a circular hull, measured by the isoperimetric ratio (riso=1.0r_{\mathrm{iso}} = 1.0). The objective combines shape matching, low degree inequality (cgini=0.1c_{\mathrm{gini}} = 0.1), moderate clustering (cclust=0.2c_{\mathrm{clust}} = 0.2), and normalized spectral gap (λ2=1.0\lambda_2 = 1.0) measuring overall connectivity. Here, the target λ2=1.0\lambda_2 = 1.0 is idealistic; planar, bounded-degree, geometrically constrained graphs have much lower attainable spectral gaps, so this term acts primarily as a connectivity pressure. Results show that our method balances these competing metrics best, while satisfying all constraints. Note here, that Delaunay triangulation, representing a maximally connected planar embedded graph, achieves highest spectral gap, which is this baselines natural strength, but does so at the cost of clustering and constraint satisfaction.

Urban road grid in circular hull. This benchmark synthesizes an 80-node road-network-like graph in a circular hull. The objective combines shape matching (risor_{\mathrm{iso}}), edge-length regularity (Sl=0.7S_l = 0.7), angular resolution (AR=0.8\mathrm{AR} = 0.8), and low degree inequality (cgini=0.2c_{\mathrm{gini}} = 0.2). Although Delaunay triangulation shows a better match on two individual metrics, it does so by strongly underperforming on angular resolution and falls behind in total reward while also failing to satisfy 2/4 constraints.

Strongly connected mesh in square hull. This benchmark generates a 100-node mesh in a square hull with high connectivity, combining a squareness objective (rsquare=1.0r_{\mathrm{square}} = 1.0) with a spectral-gap objective λ2\lambda_2. Similar to benchmark 1, the goal of λ2=0.3\lambda_2 = 0.3 is chosen arbitrarily as a maximization pressure on connectivity. Lattice graphs naturally achieve perfect squareness, but have lower spectral gap. Our method provides the best overall trade-off while satisfying all constraints.

Graph with 40 triangles in circular hull. This benchmark targets a 60-node mesh in a circular hull with exactly 40 triangles. Unlike standard triangulation methods, the task requires a specific combinatorial face. Our method closely matches the triangle target on average and satisfies all constraints, whereas HOG substantially overshoots the triangle count.

Ablation and Scalability Study

We further evaluate action projection and scalability on a single squareness objective rsquarer_{\mathrm{square}} over varying graph sizes. Figure 3 shows that CMA-ES-supervised action projection improves terminal reward by steering the policy away from infeasible continuous actions, allowing the agent to focus on reward optimization. This also reduces constraint violations by a factor of 15 compared to the projection-free variant; detailed statistics are provided in Appendix § 11.§ 3. Figure 4 evaluates the reward of graph sizes up to 150 nodes under two constraint regimes. As expected, tighter constraints and larger graph sizes reduce achieved reward. However, the method still generates feasible square-like graphs at graph sizes substantially larger than common graph diffusion models operating on planar graph datasets, which typically use at most 64 nodes [38, 50].

Figure 3. Ablation study of action projection with CMA-ES enabled, vs. disabled for varying target graph sizes.

Scalability study of our method for different graph sizes and constraint tightness

Figure 4. Scalability study of our method for different graph sizes and constraint tightness.

Limitations & Future Work

While our experiments generate graphs with up to 150 nodes (Figure 4), scalability remains limited by the growing combinatorial grammar design space for longer decision horizons. This limitation should be viewed relative to deep generative baselines, which often lose validity or efficiency on larger graphs under strict structural constraints such as planarity, as shown in Appendix § 15. Tackling this scalability ceiling is left for future work, where a principled approach could be the adoption of hierarchical reinforcement learning [51] to reduce the effective decision horizon. A higher-level policy would select actions that define larger structural changes, while a lower-level policy would apply the existing grammar to maximize the intrinsic reward obtained by the high-level policy. Such an extension could also facilitate applications to constrained, goal-directed mesh generation, where substantially larger graphs are typically required. A second limitation is the structural prior imposed by the grammar: the method can only generate graphs expressible by the chosen rule set. We therefore do not claim completeness with respect to all planar embedded graphs, and results should be interpreted within the assumptions encoded by the grammar. At the same time, the rule set is also a strength in domain-specific settings, where hand-crafted rules encode system validity by design [52]. However, deriving grammars with improved formal coverage of planar graph embeddings is an important direction for future work.

Conclusions

We introduced a grammar-based reinforcement learning method and benchmark suite that, to our knowledge, is the first to combine goal-directed generation of embedded planar graphs with hard structural and geometric constraint enforcement. By formulating graph rewriting as a constrained Markov decision process, the method constructs topology and geometry jointly while enforcing feasibility through grammar-induced admissibility and learned action projection. Across four benchmarks, our method generates graphs with exact prescribed node counts, satisfies all constraints, and achieves the best overall multi-objective reward. Although a few baselines are competitive in the benchmarks, they do not generalize across other multi-objective tasks; by contrast, our method maintains strong rewards while satisfying the full constraint set in all benchmarks, indicating stronger generalization across heterogeneous benchmarks. On the other hand, diffusion-based generators struggle strongly to satisfy constraints while maximizing the reward. Beyond the metrics and constraints used here, the framework is designed to accommodate arbitrary user-specified objectives and constraints through the reward and constraint definitions.

Acknowledgments

This research was supported by the ETH Research Grant 23-1 ETH-35. Research supported by the NVIDIA Academic Grant Program using a NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition GPU.

Grammar Rules

This appendix specifies the seven graph rewriting rules defined in the grammar G\mathcal{G}. Each rule p∈Pp \in\mathcal{P} acts on a single boundary node vˉtb\bar{v}_t^b determined by the match gtg_t and is applied via the graph transition operator T\mathcal{T} to the graph state GtG_t. A rule may introduce new embedded nodes and edges connecting those to vˉtb\bar{v}_t^b, parameterized geometrically by a rule-specific continuous vector θt∈Θ(pt)\theta_t \in\Theta(p_t) that encodes normalized sector angles and edge lengths (cf. Appendix § 9.§ 3). All rules update both the directed edge set EtdE_t^d and the node set VtV_t. Prior to each rule application, the boundary edges EtbE_t^b in GtG_t are removed as part of T\mathcal{T}, and reintroduced afterwards according to the connecting procedure (cf. Appendix § 9.§ 2). This connecting procedure identifies how the leaf nodes in VtbV_t^b in the current graph state are connected using boundary edges, such that the resulting graph is planar and geometrically closed. These boundary edges then populate the edge set EtbE_t^b. The rule semantics and notations are introduced in Appendix § 9.§ 1. A schematic overview of all rules in P\mathcal{P} is shown in Figure 5 and Table 2.

Rule set P\mathcal{P}DescriptionNew nodesMerges(#α,#ℓ)(\#\alpha,\#\ell)dim Θ\Theta
p(1)p^{(1)}Triple node sprout30(4, 3)7
p(2)p^{(2)}Single sprout + two merges12(2, 1)3
p(3)p^{(3)}Merge left + double sprout21(3, 2)5
p(4)p^{(4)}Merge right + double sprout21(3, 2)5
p(5)p^{(5)}Double node sprout20(3, 2)5
p(6)p^{(6)}Merge left + single sprout11(2, 1)3
p(7)p^{(7)}Merge right + single sprout11(2, 1)3

Table 2. Summary of grammar rules P\mathcal{P}. “Merge” refers to connections identified by the connecting procedure (cf. Figure 6) and "Sprout" refers to newly added nodes. The table additionally shows the dimensionality of the geometric parametrization.

Figure 5. Schematic illustration of the seven grammar rules in P\mathcal{P}. The top row represent a graph state GtG_t and the highlighted left-hand side LL (i.e. the match vˉtb\bar{v}_t^b) of a rule p(⋅)p^{(\cdot)} prior to a rule application. The bottom row shows the graph state Gt+1G_{t+1} after a rule has been applied, with the right-hand side RR shown as red outward directed edges, the red outlined newly added nodes, and merged nodes as dashed outlined nodes. Geometric parameters are indicated in the bottom row.

Rule semantics and notation in Figure 5 and Table 2.

Each rule p(⋅)∈Pp^{(\cdot)} \in\mathcal{P}. With reference to § 2.1, a rule p(⋅):L→Rp^{(\cdot)} : L \to R rewrites a local neighborhood (left-hand side LL) in the graph state GtG_t around a boundary node vˉtb\bar{v}_t^b identified by the match gtg_t with a new subgraph RR. In the visualizations of all rules in Figure 5, the top row depicts the graph state GtG_t prior to a rule application with the highlighted subgraph LL (i.e. the match vˉtb\bar{v}_t^b), which can be rewritten with a rule and the graph transition operator T\mathcal{T}. Additionally, we depict optional incoming directed edges to vˉtb\bar{v}_t^b using dashed edges. This represents edges that may, or may not be present at the rule application site, implying that any number of existing incoming directed edges may be valid at a selected match vˉtb\bar{v}_t^b, as long as the degree constraint cdegc_{\mathrm{deg}} (see § 3.2) is satisfied.

The bottom row in Figure 5 depicts the graph state Gt+1G_{t+1} where the right-hand side RR of the rules has been applied. The newly added edges are depicted as outward directed edges from vˉtb\bar{v}_t^b in red with new nodes with a red outline. Several rules allow to merge an edge to an existing node in the graph GtG_t (i.e. rules 2,3,4,6,7). This merging mechanism is enabled by the connecting procedure (cf. Appendix § 9.§ 2). Figure 5 highlights the merged nodes in RR as dashed-outlined nodes.

Each rule is associated with a parameter space θt∈Θ(pt)\theta_t \in\Theta(p_t) that defines the geometric parametrization of angles αi\alpha_i (sector angles) and lengths ℓi\ell_i (line segments) in RR. In the bottom row of Figure 5, we depict the set of sector angles occupied by edges that are present at vˉtb\bar{v}_t^b prior to rule application using the set B\mathcal{B}. Hence, the angular parameter space of Θ(pt)\Theta(p_t) is restricted to the remaining angular budget

B=2π−∑k∈Bαk.B = 2\pi- \sum_{k \in\mathcal{B}} \alpha_k.

Boundary edges EtbE_t^b are not depicted in Figure 5, as they are removed before any rule application by the transition operator T\mathcal{T} and reintroduced afterward by use of the connecting procedure (cf. Appendix § 9.§ 2). Note that, when discarding the boundary edge set, the described rule-set creates Directed Acyclic Graphs (DAG) by design, since rules are applied uniquely at leaf nodes in a directed graph. Additionally, merge-able nodes, identified by the connecting procedure are uniquely leaf nodes, too, therefore, the application of the rewriting rules cannot introduce directed cycles and the grammar G\mathcal{G} will always produce a DAG.

Connecting Procedure cf. Figure 6

Figure 6. Visualization of the connecting procedure. (a) The connecting procedure identifies a merge-able node, starting from vˉtb\bar{v}_t^b. The merge-able node is depicted as the dashed-outlined node. (b) The connecting procedure identifies a boundary edge, depicted by the undirected edge between the highlighted nodes.

The connecting procedure is a deterministic geometric routine that serves two purposes: (i) it identifies merge-able nodes that can be connected to from a match vˉtb\bar{v}_t^b by rules with merging semantics, while ensuring topological planarity (cf. Figure 6(a)), (ii) it reconstructs the graph’s boundary edges after each rule application so that the updated graph remains planar and geometrically closed (cf. Figure 6(b)).

The procedure operates exclusively on the current embedded graph state and depends only on the node positions and the directed edge configuration EtdE_t^d. In case (i), the procedure is initialized at the match vˉtb\bar{v}_t^b and geometrically traverses the connected edges in EtdE_t^d, starting from vˉtb\bar{v}_t^b, in either clock-wise or counter-clock-wise direction, depending on the selected rule. The traversal terminates upon finding a boundary node, which is then labeled as the node to merge to. This is indicated in the figure using the dashed-curved arrow (traversal process) and the dashed-outlined node (merge-able node) in Figure 6(a). In case (ii), the procedure is initialized at any boundary node and follows the same traversal principle until another boundary node is found. Then, a boundary edge connects both boundary nodes, depicted as the undirected edge between the highlighted nodes in Figure 6(b). Applying this process to all boundary nodes guarantees that the resulting boundary edge set EtbE_t^b forms a non-self-intersecting polygonal chain that encloses the graph.

Rule Parametrization

In the implementation, T(Gt;gt,pt,θt)\mathcal{T}(G_t; g_t, p_t, \theta_t) maps the normalized parameters θt∈(−1,1)dim⁡(Θ(pt))\theta_t \in(-1,1)^{\operatorname{dim}(\Theta(p_t))} to Cartesian coordinates. For each rule ptp_t, the parameter space Θ(pt)\Theta(p_t) is decomposed into angular parameters Θα(pt)\Theta_{\alpha}(p_t) and length parameters Θℓ(pt)\Theta_{\ell}(p_t), which are denormalized independently using the procedures described below.

Sector angles. Rewrite rules introduce a finite set of new sector angles around v⃗tb\vec{v}^{b}_{t}. Let B\mathcal{B} denote the set of angles already occupied by incoming directed edges at v⃗tb\vec{v}^{b}_{t} (cf. Figure 5), and let B=2π−∑k∈BαkB = 2\pi- \sum_{k \in\mathcal{B}} \alpha_k be the remaining angular budget. For a rule that requires explicit angles nn plus one closing angle, let m=n+1m = n + 1 and let θα∈(0,1)m\theta_{\alpha} \in(0,1)^m denote the normalized angular parameters obtained by rescaling the policy outputs from (−1,1)(-1,1). A minimum angle αmin⁡>0\alpha_{\min} > 0 is enforced by reserving αmin⁡\alpha_{\min} per angle, yielding free budget Bfree=max⁡(B−mαmin⁡,0)B_{\mathrm{free}} = \max(B - m\alpha_{\min}, 0). Denormalized angles are computed as

ui=θαi2,u~i=ui∑juj+δBfree,αi=αmin⁡+u~i,(15)u_i = \theta_{\alpha_i}^{2}, \qquad\tilde{u}_i = \frac{u_i}{\sum_j u_j + \delta} B_{\mathrm{free}}, \qquad\alpha_i = \alpha_{\min} + \tilde{u}_i, \tag*{(15)}

with δ>0\delta> 0 a small constant. This guarantees αi≥αmin⁡\alpha_i \ge\alpha_{\min} and ∑iαi≤2π\sum_i \alpha_i \le2\pi, with the final angle acting as a closing angle.

Edge lengths. Each rule specifies a fixed number L^\hat{L} of newly introduced edges and thus L^\hat{L} corresponding length parameters θℓ∈(0,1)L^\theta_{\ell} \in(0,1)^{\hat{L}} obtained by rescaling the policy outputs from (−1,1)(-1,1). Physical edge lengths are given by

ℓ=ℓmin⁡+θℓ(ℓmax⁡−ℓmin⁡),(16)\ell= \ell_{\min} + \theta_{\ell}(\ell_{\max} - \ell_{\min}), \tag*{(16)}

where ℓmin⁡\ell_{\min} and ℓmax⁡\ell_{\max} are global bounds from the constraint set C\mathcal{C}.

Geometric realization. Let r^\hat{r} denote the incoming reference direction at v⃗tb\vec{v}^{b}_{t}, conventionally taken as the first incident directed edge in counter-clockwise direction that sits within the polygon formed by the boundary edges EtbE^{b}_{t}, and R(α)R(\alpha) a planar rotation by angle α\alpha with respect to the last incident edge in counter-clockwise direction within the polygon EtbE^{b}_{t}. All newly introduced vertices are placed in the Euclidean plane as

ynew=yv⃗tb+ℓR(α)r^∥R(α)r^∥2.(17)y_{\mathrm{new}} = y_{\vec{v}^{b}_{t}} + \ell\frac{R(\alpha)\hat{r}}{\lVert R(\alpha)\hat{r} \rVert_2}. \tag*{(17)}

Implementation

The complete grammar and graph rewriting logic is implemented in JAX [53], enabling compiled and efficient implementation of the transition operator. Low-level geometric operations, in particular planarity checks based on pairwise edge-intersection tests, are formulated in a vectorized manner and evaluated in parallel. The grammar execution runs on the CPU, as the control flow of the grammar is predominantly sequential with sparse data structures that benefit more from high multi-core CPU throughput than from GPU parallelism.

Actor–Critic Architecture

In this appendix, we describe the complete actor–critic architecture in detail. The whole architecture is parametrized with neural networks, denoted with ϕ\phi.

Graph Feature Extractor

First we describe the geometry-aware graph feature extractor used by the actor–critic networks. The extractor maps an embedded graph state GtG_t to node-level and graph-level representations suitable for decision-making, while respecting the geometric structure of the graph.

Input representation. The extractor operates on a batched graph representation. Each node v∈Vtv \in V_t is associated with a feature vector

xv=[bv,dv,hv,yv],(18)x_v = [b_v, d_v, h_v, y_v], \tag*{(18)}

where bv∈{0,1}b_v \in\{0,1\} is a boundary indicator, dv∈{0,…,Dmax⁡}d_v \in\{0,\ldots,D_{\max}\} is the (discrete) degree, and hv∈R2Kh_v \in\mathbb{R}^{2K} is a precomputed sector-angle embedding using K=4K = 4 Fourier harmonics (cf. Figure 3.3). Each node additionally carries planar coordinates yv∈R2y_v \in\mathbb{R}^{2}. Edges are treated as undirected for the purpose of message passing.

Node-level Embeddings

Discrete and continuous feature lifting. Discrete degree values are embedded via a learned embedding (lookup table) e(dv)∈Rde(d_v) \in\mathbb{R}^{d} . The discrete block [bv,e(dv)][b_v, e(d_v)] is concatenated with the continuous sector-angle features hvh_v and mapped to the hidden dimension ZZ using a two-layer perceptron ϕlift\phi_{\mathrm{lift}},

h~v(1)=ϕlift(hv∥bv∥e(dv))∈RZ,(19)\widetilde{h}_v^{(1)} = \phi_{\mathrm{lift}}(h_v \Vert b_v \Vert e(d_v)) \in\mathbb{R}^{Z}, \tag*{(19)}

while remaining E(2)-invariant. Initial coordinates are taken as yv(1)=yvy_v^{(1)} = y_v.

EGNN backbone. The lifted features are processed by a stack of three E(2)-equivariant graph neural network (EGNN) layers [30]. At each layer ll, E(2)-invariant node features h~v(l)\widetilde{h}_v^{(l)} and E(2)-equivariant coordinates yv(l)y_v^{(l)} are jointly updated using relative positions encoded via a fixed Fourier encoding with four frequencies. Each layer applies residual connections followed by layer normalization on the invariant features, yielding updated node features h~v(l+1)\widetilde{h}_v^{(l+1)}. Coordinate updates yv(l+1)y_v^{(l+1)} are not affected by residual connections or normalization. The backbone produces a sequence of node-feature tensors {H~(1),H~(2),H~(3)}\{\widetilde{H}^{(1)}, \widetilde{H}^{(2)}, \widetilde{H}^{(3)}\}, where H~(l)∈R∣Vt∣×Z\widetilde{H}^{(l)} \in\mathbb{R}^{|V_t|\times Z} and ∣Vt∣|V_t| vary with the current graph size. Coordinate updates are equivariant under global planar rigid motions, while node and graph features are invariant to translations and rotations. All global readouts are permutation-invariant with respect to node ordering.

Graph-size-aware jumping knowledge. To adapt representations across varying graph sizes, the extractor employs a graph-size-aware jumping-knowledge mechanism [31]. For each layer ll, mean-pooled features gpool(l)=1∣Vt∣∑vh~v(l)g_{\mathrm{pool}}^{(l)} = \frac{1}{|V_t|}\sum_v \widetilde{h}_v^{(l)} are concatenated with a log-scaled graph-size signal log⁡(1+∣Vt∣)\log(1 + |V_t|) that automatically bounds the graph size for a well-behaved MLP input. A two-layer MLP produces normalized layer weights wgate(l)w_{\mathrm{gate}}^{(l)}, which are used to fuse per-layer node feature tensors into the final node embedding tensor

H^=∑l=13wgate(l)H~(l)∈R∣Vt∣×Z,(20)\widehat{H} = \sum_{l=1}^{3} w_{\mathrm{gate}}^{(l)} \widetilde{H}^{(l)} \in\mathbb{R}^{|V_t|\times Z}, \tag*{(20)}

where each row H^v\widehat{H}_v in H^\widehat{H} corresponds to a node embedding at node v∈Vtv \in V_t.

Graph-level Embeddings

Graph-level embeddings g^∈RZ\widehat{g} \in\mathbb{R}^{Z} are obtained by summing attentional aggregation [32], implemented via a two-layer gating MLP, and mean pooling over the set of node embeddings {H^v}v=1∣Vt∣\{\widehat{H}_v\}_{v=1}^{|V_t|}.

Feature Aggregation

As described in § 3.3, for downstream policy network inputs we concatenate each node embedding H^v\widehat{H}_v with the graph-level embedding g^\widehat{g}

Hv=[H^v∥g^]∈R2Z(21)H_v = [\widehat{H}_v \Vert\widehat{g}] \in\mathbb{R}^{2Z} \tag*{(21)}

to form a final set of fused node-level representations {Hv}v=1∣Vt∣\{H_v\}_{v=1}^{|V_t|}. Including graph-level information enables the agent to make globally informed decisions using only node-level features HvH_v while preserving the Markov property.

For the critic, only the graph-level representation g^\widehat{g} is used as input, and node-level representations are discarded.

Policy Networks

We describe the neural networks used to model the policy distributions πϕ(gt∣Gt)\pi_{\phi}(g_t \mid G_t) (matching), πϕ(pt∣gt,Gt)\pi_{\phi}(p_t \mid g_t, G_t) (rule selection), and qϕ(ξt∣gt,pt,Gt)q_{\phi}(\xi_t \mid g_t, p_t, G_t) (parametrization), as introduced in § 3.4.

Matching

The matching distribution πϕ(gt∣Gt)\pi_{\phi}(g_t \mid G_t) is approximated by a two-layer MLP with domain {R2Z}∣Vt∣→R\{\mathbb{R}^{2Z}\}^{|V_t|} \to\mathbb{R}, taking as input the node representations {Hv}v=1∣Vt∣\{H_v\}_{v=1}^{|V_t|} and producing one logit per node. By definition of admissible matches (cf. Figure 2.1), only boundary nodes are valid; all non-boundary nodes are therefore masked by assigning −∞-\infty logits. The resulting logits define the categorical distribution πϕ(gt∣Gt)\pi_{\phi}(g_t \mid G_t), from which a boundary node vˉt\bar{v}_t is sampled.

Rule Selection

The rule-selection distribution πϕ(pt∣gt,Gt)\pi_{\phi}(p_t \mid g_t, G_t) is modeled by a two-layer MLP R2Z→RPmax⁡\mathbb{R}^{2Z} \to\mathbb{R}^{P_{\max}} with input HvˉtH_{\bar{v}_t}. Here, Pmax⁡=7P_{\max} = 7, corresponding to the number of rules implemented (cf. Table 2). Conditioning on (gt,Gt)(g_t, G_t) is thus realized by evaluating the node embedding at the sampled match location vˉt\bar{v}_t with HvˉtH_{\bar{v}_t}. The network outputs one logit per rule in P\mathcal{P}, defining the categorical distribution πϕ(pt∣gt,Gt)\pi_{\phi}(p_t \mid g_t, G_t) from which a rule pˉt\bar{p}_t is sampled.

Parametrization

The continuous parametrization qϕ(ξt∣gt,pt,Gt)=N(μϕ,σϕ2)q_{\phi}(\xi_t \mid g_t, p_t, G_t) = \mathcal{N}(\mu_{\phi}, \sigma_{\phi}^{2}) is modeled as an isotropic Gaussian. The mean μϕ\mu_{\phi} is conditioned on the sampled rule via a learned rule embedding e(pt)∈REpe(p_t) \in\mathbb{R}^{E_p} and predicted by a two-layer MLP with domain R2Z×REp→RDmax⁡\mathbb{R}^{2Z} \times\mathbb{R}^{E_p} \to\mathbb{R}^{D_{\max}}, taking inputs HvˉtH_{\bar{v}_t} and e(pt)e(p_t). Here, Dmax⁡=max⁡p∈Pdim⁡Θ(p)=7D_{\max} = \max_{p \in\mathcal{P}} \dim\Theta(p) = 7, corresponding to the maximum number of continuous parameters for all rules. For any rule that requires fewer parameters, we apply masking to filter unused dimensions. The log-variance log⁡σϕ2\log\sigma_{\phi}^{2} is a global trainable vector of dimension seven with no state-dependent inputs. This Gaussian represents the nominal parametrization ξt\xi_t with infinite support prior to the action projection.

Critic Network

The critic predicts a scalar state value from the graph-level embedding g^t∈RZ\hat{g}_t \in\mathbb{R}^{Z} and discards node-level representations. Note that the critics feature extractor does not share the feature-extractor parameters with the policies feature extractor. Each uses an architecturally identical but independently trained extractor, to disentangle learning signals for actor and critic. To provide an explicit graph-size signal, a learned embedding e(log⁡(1+∣Vt∣))∈RZe(\log(1 + |V_t|)) \in\mathbb{R}^{Z} is added to form g~t=g^t+e(log⁡(1+∣Vt∣))\tilde{g}_t = \hat{g}_t + e(\log(1 + |V_t|)). The state value V(Gt)V(G_t) is then predicted from g~t∈RZ\tilde{g}_t \in\mathbb{R}^{Z} using a two-layer MLP.

Implementation, Network Sizes, and Training

The complete actor–critic architecture is implemented using PyTorch and PyTorch-Geometric [54], while the environment is implemented in JAX [53]. The PPO implementation is inspired by, but independently re-implemented from StableBaselines3 [55] to support graph data structures.

Network Sizes. All mentioned actor–critic MLPs use two-layers (Linear – SiLU – Linear) (including MLPs within the EGNN layers) with SiLU activations. The hidden dimension Z=32Z = 32 is used throughout, except for the critic MLP, which uses dimension 64. The degree and rule embeddings are set to Ed=Ep=20E_d = E_p = 20. In total, the architecture contains 66,972 trainable parameters, illustrating the expressivity of the model with only a few tens of thousands of parameters.

PPO. PPO optimization uses the Adam optimizer [56] with a cosine-annealed learning-rate schedule. Training is performed on an NVIDIA RTX PRO 6000 Blackwell Max-Q GPU, while the environment runs on a 16-core AMD CPU with multiprocessing. Training time ranges from 10 minutes to 2 hours depending on the task complexity. Hyperparameters are listed in Table 3. All policy networks, including feature extractors, are orthogonally initialized with gain 2\sqrt{2}; final linear layers of matching, rule-selection, and parametrization networks use gain 0.01 and zero bias to encourage early exploration. The log-variance vector log⁡σϕ2\log\sigma_{\phi}^{2} is initialized to zero (σ=1\sigma= 1), and critic networks are initialized with gain 1.0.

ParameterValue
Discount factor γ\gamma0.99
GAE parameter λ\lambda0.95
Clip range ϵPPO\epsilon_{\mathrm{PPO}}0.2
Entropy coefficient centc_{\mathrm{ent}}0.01
PPO epochs per update5
Mini-batch size675
Number of mini-batches4
Number of parallel environments30
Number of steps per rollout90
Time limit for episode400
Learning rate4×10−44 \times10^{-4} (decay to 10−510^{-5})
Target KL-divergence0.02

Table 3. PPO hyper-parameters chosen consistently for all experiments.

Action Projection

This appendix describes the learnable action projection module ηψ\eta_{\psi} used to map nominal continuous action parameters to a state-dependent feasible set, as introduced in § 3.4 and § 3.5. We detail (i) the action projection architecture, (ii) the supervised training procedure, and (iii) the generation of supervision signals for action projection training. We additionally show that the policy space is preserved up to a reparameterization using the action projection in Appendix § 11.1.3.

Action Projection Architecture

At time step tt, the actor produces a nominal hybrid action at=(gt,pt,ξt)a_t = (g_t, p_t, \xi_t), where gtg_t denotes the selected boundary node (match), pt∈Pp_t \in\mathcal{P} the selected grammar rule, and ξt\xi_t a nominal continuous parameter vector. The action projection is then conditioned on the local node-level embedding at the selected match and on the discrete rule choice using a learned embedding e(pt)∈REpe(p_t) \in\mathbb{R}^{E_p}. The sampled node-level embedding H^vtvt\hat{H}^{v_t}_{v_t} is extracted using the equivalent feature extractor (cf. Appendix § 10.§ 1 and § 3.3) as for the actor–critic networks, but trained separately in terms of trainable parameters ψ\psi.

Squashed Affine Map

Conditioned on the concatenation of a sampled node embedding H^vtvt\hat{H}^{v_t}_{v_t} and e(pˉt)e(\bar{p}_t) the projection uses an element-wise affine transformation followed by a tanh squashing nonlinearity, explicitly formulated as

θt=ηψ(ξt;Gt,gt,pt)=tanh⁡(sψ(H^vtvt∥e(pˉt))⊙ξt+tψ(H^vtvt∥e(pˉt)))(22)\theta_t = \eta_{\psi}(\xi_t; G_t, g_t, p_t) = \tanh\left(s_{\psi}\left(\hat{H}^{v_t}_{v_t} \mathbin\Vert e(\bar{p}_t)\right) \odot\xi_t + t_{\psi}\left(\hat{H}^{v_t}_{v_t} \mathbin\Vert e(\bar{p}_t)\right)\right) \tag*{(22)}

where sψ(⋅)>0s_{\psi}(\cdot) > 0 and tψ(⋅)t_{\psi}(\cdot) denote learned scale and shift functions, respectively, and ⊙\odot denotes element-wise multiplication.

The scale and shift functions sψ(⋅)>0s_{\psi}(\cdot) > 0 and tψ(⋅)t_{\psi}(\cdot) are modeled as a 2-layer MLP RZ+Ep→RDmax⁡\mathbb{R}^{Z+E_p} \to\mathbb{R}^{D_{\max}} with input [H^vtvt∥e(pt)][\hat{H}^{v_t}_{v_t} \mathbin\Vert e(p_t)] each. Additionally, the output of the scale MLP sψ(⋅)s_{\psi}(\cdot) is log sψs_{\psi} bounded via log⁡sψ=tanh⁡(⋅) κ\log s_{\psi} = \tanh(\cdot)\,\kappa with κ=2\kappa= 2, yielding element-wise scale values sψ∈[exp⁡(−2),exp⁡(2)]s_{\psi} \in[\exp(-2), \exp(2)].

The final linear layers of both MLPs are initialized to zero, resulting in an initial near-identity mapping (unit scale and zero shift) up to the outer tanh. This enforces unbiased initial mapping before training the action projection and reflects a standard squashed Gaussian projection. Hidden layer dimensions are set to 32.

Jacobian determinant

Since Equation (22) is element-wise, the Jacobian is diagonal and the log absolute determinant is available in closed form,

log⁡∣det⁡Jηψ∣=∑i=1Dmax⁡mask⁡i(pt)(log⁡sψ,i+log⁡(1−θt,i2)),(23)\log\left|\det J_{\eta_\psi}\right| = \sum_{i=1}^{D_{\max}} \operatorname{mask}_i(p_t)\left(\log s_{\psi,i} + \log\left(1-\theta_{t,i}^{2}\right)\right), \tag*{(23)}

with numerical stabilization obtained by clamping θt,i\theta_{t,i} away from ±1\pm1 with a small ε\varepsilon. mask⁡i(pt)\operatorname{mask}_i(p_t) represents masking for unused rule-dependent dimensions. During PPO optimization, this term is used to apply the standard change-of-variables correction (cf. § 3.4)

log⁡πϕ(θt∣⋅)=log⁡qϕ(ξt∣⋅)−log⁡∣det⁡Jηψ∣.(24)\log\pi_\phi(\theta_t \mid\cdot) = \log q_\phi(\xi_t \mid\cdot) - \log\left|\det J_{\eta_\psi}\right|. \tag*{(24)}

Policy Space Preservation

We show that the policy space Θ\Theta is preserved up to a reparameterization using the action projection ηψ\eta_\psi.

Let Ξ=Rd\Xi= \mathbb{R}^{d} and Θ=(−1,1)d\Theta= (-1,1)^{d}. The map ηψ:Ξ→Θ\eta_\psi: \Xi\to\Theta, as specified in Equation (22), is a C1C^{1} diffeomorphism.

Define the push-forward operator

ηψ#:P^(Ξ)→P^(Θ),ηψ#μ:=μ∘ηψ−1,(25)\eta_{\psi\#} : \widehat{\mathcal{P}}(\Xi) \to\widehat{\mathcal{P}}(\Theta), \qquad\eta_{\psi\#}\mu:= \mu\circ\eta_{\psi}^{-1}, \tag*{(25)}

where P^(⋅)\widehat{\mathcal{P}}(\cdot) denotes the set of probability measures. Then, ηψ#\eta_{\psi\#} is a bijection with inverse (ηψ−1)#(\eta_{\psi}^{-1})_{\#}. Consequently, the policy classes

{qϕ∈P^(Ξ)}and{πϕ=ηψ#qϕ∈P^(Θ)}(26)\left\{q_\phi\in\widehat{\mathcal{P}}(\Xi)\right\} \quad\text{and} \quad\left\{\pi_\phi= \eta_{\psi\#}q_\phi\in\widehat{\mathcal{P}}(\Theta)\right\} \tag*{(26)}

are isomorphic via the push-forward induced by the diffeomorphism ηψ\eta_\psi, and the policy space is preserved up to reparameterization.

Supervised Training Procedure

The action projection is trained using a short FIFO replay buffer that stores recent graph transitions collected during PPO rollouts. Since the action projection is off-policy in parameters ψ\psi, we store the last ten rollouts in the replay buffer and train it synchronously alongside PPO. Each entry in the buffer consists of graph states together with nominal continuous parameters ξt\xi_t and the corresponding environment-projected targets θt∗\theta_t^* using Covariance Matrix Adapted Evolutionary Strategy (CMA-ES) (see Appendix § 11.§ 2.1).

Training minimizes a mean-squared error loss over the continuous parameters,

Lproj=E[wt∥mask⁡(pt)⊙(ηψ(ξt)−θt∗)∥22],(27)\mathcal{L}_{\mathrm{proj}} = \mathbb{E}\left[w_t \left\|\operatorname{mask}(p_t) \odot\left(\eta_\psi(\xi_t)-\theta_t^*\right)\right\|_2^2\right], \tag*{(27)}

where the sample weight wtw_t is set to 1 if the environment modified any continuous parameter, and to 0.5 otherwise. This biases learning toward the cases where geometric correction is required.

The projection is optimized using the same optimizer and learning-rate schedule as PPO. The projection is then trained for a fixed number of 7 supervised epochs per PPO iteration. After a prescribed number of 200 PPO iterations, the projection training is terminated, and the projection remains fixed during subsequent policy optimization.

Environment-Side Supervision via CMA-ES

For each step, the actor produces nominal samples ξt\xi_t and projects them using the action projection ηψ\eta_\psi to θt\theta_t. The environment then assesses the feasibility of the proposed continuous parameters θt\theta_t using geometric CG\mathcal{C}_{\mathcal{G}} and topological CT\mathcal{C}_{\mathcal{T}} constraints checks (cf. § 3.2). If an action is topologically admissible but geometrically infeasible (e.g., due to edge intersections or boundary length violations), the CMA-ES procedure is invoked (cf. § 3.5) to further correct the proposed θt\theta_t. If CMA-ES finds an admissible solution θt∗\theta_t^*, the action projection will be updated and trained using the corrected solution in the next training iteration.

CMA-ES is initialized at the proposed parameters and minimizes an objective (cf. Equation (28)) that encourages proximity to the original parameters while satisfying CGC_G. If a feasible θt∗\theta_t^* is found, it is applied to advance the environment state, otherwise we fall back to the rejection-sampling scheme while advancing the time step t→t+1t \to t+1 without changing the environment state. Advancing the time step informs the actor that the action was infeasible implicitly, due to a reduced terminal reward according to the discount factor γ<1\gamma< 1.

The optimization problem stated in Equation (13) is implemented using an explicit penalty objective as

J(θt′)=λgeom(cpl(θt′)+cℓ(θt′))+∥θt′−θˉt∥2,(28)J(\theta_t') = \lambda_{\mathrm{geom}}\left(c_{\mathrm{pl}}(\theta_t') + c_{\ell}(\theta_t')\right) + \lVert\theta_t' - \bar{\theta}_t\rVert_2, \tag*{(28)}

with penalty weight λgeom=10\lambda_{\mathrm{geom}} = 10, cplc_{\mathrm{pl}} representing the planarity constraint in the form of edge-intersections and cℓc_{\ell} the boundary edge length constraint. Other constraints in CGC_G do not appear explicitly, as they are either enforced by the rule parametrization (sector angles, internal edge lengths), or correspond to violations introduced by merging rules, which are classified by topological constraints CTC_T and cannot be resolved by continuous reparameterization. Since CMA-ES operates in an unconstrained space, optimization is performed over z∈Rdim⁡Θ(pt)z \in\mathbb{R}^{\dim\Theta(p_t)} using the sigmoid reparameterization θt′=σ(z)∈(0,1)dim⁡Θ(pt)\theta_t' = \sigma(z) \in(0,1)^{\dim\Theta(p_t)} to operate in the rule parametrization space (cf. Appendix § 9.§ 3), yielding

min⁡z∈Rdim⁡Θ(pt)J(σ(z)).(29)\min_{z \in\mathbb{R}^{\dim\Theta(p_t)}} J(\sigma(z)). \tag*{(29)}

CMA-ES is implemented using EVOSAX [57] and run using a population size 100 with 4 iterations in total, an initial search standard deviation of 1.

CMA-ES & Action Projection Results

We further analyze the effect of CMA-ES and action projection on rollout wall-clock time in Figure 7(a,Figure 7b), and report the number of CMA-ES invocations during training across graph sizes and constraint regimes in Figure 7(c). Figure 7(a) shows that, after 50% of training, the computational overhead introduced by CMA-ES is negligible relative to the remaining rollout computations, while (b) shows the fractional proportion of CMA-ES during the whole training. This low overhead is due in part to the action projection mechanism, which progressively approximates the safe set during training, and renders CMA-ES only as a fallback mechanism, and to the efficient EVOSAX implementation. Consistently, Figure 7(c) shows that CMA-ES invocations rapidly decrease over training and become rare, partly due to the learned action projection. This effect is further supported by Figure 7(e), where we compare geometric constraint violations with action projection enabled against a static projection variant obtained by setting sψ=1s_{\psi} = 1 and tψ=0t_{\psi} = 0. Figure 7(d) reports the CMA-ES success rate and shows that, even for large graphs under tight constraints, the optimizer finds feasible parameters θt∗\theta_t^* satisfying CG=0C_G = 0 at a high rate. Further, as discussed in § 3.5, topological violations are substantially less frequent than geometric violations, as shown on the logarithmic scale in Figure 7(f). Finally, Figure 7(g) and (h) shows the overall rejection sampling rate, which then lead to rejection sampling. For smaller graph sizes this rate quickly converges to zero, while larger graphs with tighter constraints more often reside to rejection sampling. Nevertheless, this rate still remains low.

Graph Metrics

We describe the graph metrics used in the experiments in § 5. Metrics are categorized as topological (adjacency-based), geometry-based (drawing-dependent) or spectral (Laplacian-based). All metrics are summarized in Table 4.

MetricInputTypical Use
Gini coefficient cginic_{\mathrm{gini}}adjacencyhub dominance / inequality
Triangles T=tr⁡(A3)/6T = \operatorname{tr}(A^3)/6adjacencyclosure / community signal
Clustering ccluster=3T/Triplets⁡c_{\mathrm{cluster}} = 3T/\operatorname{Triplets}adjacencylocal redundancy
Algebraic connectivity λ2(L)\lambda_2(L)adjacencyconnectivity strength
Angular resolution ARdrawing anglesreadability at vertices
Edge uniformity score SℓS_{\ell}drawing lengthsregularity / aesthetics
Circularity risor_{\mathrm{iso}}boundary polygonroundness of layout
Squareness rsquarer_{\mathrm{square}}boundary polygonalignment with square shape

Table 4. Graph- and drawing-level metrics used for evaluation.

Topological and Spectral Metrics

The topological and spectral metrics described here are enumerated and discussed with more detail in [36, 58]

For all metrics, we represent the union of internal and boundary edges Etd∪EtbE_{t}^{d} \cup E_{t}^{b} as an undirected graph with adjacency matrix A∈{0,1}n×nA \in\{0,1\}^{n \times n}.

Degree inequality (Gini coefficient). Given node degrees sorted as d1≤⋯≤dnd_{1} \le\cdots\le d_{n} for nn nodes in VtV_{t} with mean dˉ\bar{d}, the definition of the gini coefficient is

cgini=12n2dˉ∑i=1n∑j=1n∣di−dj∣.(30)c_{\mathrm{gini}} = \frac{1}{2n^{2}\bar{d}} \sum_{i=1}^{n} \sum_{j=1}^{n} \lvert d_{i} - d_{j} \rvert. \tag*{(30)}

In applications, a cginic_{\mathrm{gini}} helps quantify hub dominance, load balancing concerns, and whether a model produces unrealistically concentrated connectivity.

Triangle count. The number of triangles is computed as

T=tr⁡(A3)6.(31)T = \frac{\operatorname{tr}(A^3)}{6}. \tag*{(31)}

The triangle count is a key indicator of local closure and community structure. Generators often match triangle statistics less accurately than degree distributions, exposing mode collapse.

Global clustering coefficient. The total number of connected triplets is

Triplets⁡=∑i=1n(di2)=∑i=1ndi(di−1)2.(32)\operatorname{Triplets} = \sum_{i=1}^{n} \binom{d_i}{2} = \sum_{i=1}^{n} \frac{d_i(d_i-1)}{2}. \tag*{(32)}

The clustering coefficient is then

ccluster=3TTriplets⁡.(33)c_{\mathrm{cluster}} = \frac{3T}{\operatorname{Triplets}}. \tag*{(33)}

This captures how frequently a node’s neighbors are themselves connected. It differentiates real-world networks from random baselines and is critical for evaluating realism in graph generation.

Spectral gap (or algebraic connectivity). Let L=I−D−1/2AD−1/2L = I - D^{-1/2} A D^{-1/2} be the normalized Laplacian. Then, the spectral gap is given by the second eigenvalue of LL

λ2(L)∈[0,2].(34)\lambda_2(L) \in[0, 2]. \tag*{(34)}

Higher values indicate strong connectivity, robustness, and fast mixing. This metric is often maximized in resilient network design.

Geometric Metrics

The geometric metrics assume a planar drawing with node positions yi∈R2y_i \in\mathbb{R}^2. The described planar graph metrics are based on [59, 60, 61]

Angular resolution. This metric is central in graph drawing aesthetics, where evenly spaced edge orientations improve visual clarity. Angular resolution AR also correlates with mesh quality in finite-element analysis. For any node ii in VtV_t with degree di≥2d_i \ge2, let αmin⁡(i)\alpha_{\min}(i) be the minimum angle between incident edges. First, the ideal angle is defined as

αideal(i)=2πdi.(35)\alpha_{\mathrm{ideal}}(i) = \frac{2\pi}{d_i}. \tag*{(35)}

Then, the per-node angular resolution score is

AR⁡(i)=1−∣αideal(i)−αmin⁡(i)∣αideal(i).(36)\operatorname{AR}(i) = 1 - \frac{\left|\alpha_{\mathrm{ideal}}(i) - \alpha_{\min}(i)\right|}{\alpha_{\mathrm{ideal}}(i)}. \tag*{(36)}

The global angular resolution is

AR⁡=1∣{i:di≥2}∣∑i:di≥2AR⁡(i).(37)\operatorname{AR} = \frac{1}{\left|\{i : d_i \ge2\}\right|} \sum_{i:d_i\ge2} \operatorname{AR}(i). \tag*{(37)}

Edge-length uniformity. Let ℓe\ell_e be the Euclidean length of edge ee and ℓˉ\bar{\ell} the mean edge length. We define

Δℓ=1m∑e∈E∣ℓe−ℓˉ∣ℓˉ,Sℓ=11+Δℓ,(38)\Delta_{\ell} = \frac{1}{m}\sum_{e\in E}\frac{|\ell_e-\bar{\ell}|}{\bar{\ell}}, \qquad S_{\ell} = \frac{1}{1+\Delta_{\ell}}, \tag*{(38)}

with SℓS_{\ell} representing the edge-length score metric, where a higher score indicates better edge-length uniformity. Uniform edge lengths enhance readability and fairness in graph layouts. This metric supports assessments of isotropic meshing or layout aesthetics, and is often jointly optimized with angular resolution.

Circularity. Recalling that Vtb⊆VtV_t^b \subseteq V_t denote boundary nodes, let AbA_b be the area enclosed by the polygon formed by the boundary nodes, and PbP_b its perimeter. The circularity score is defined as the isoperimetric ratio

riso=4πAbPb2.(39)r_{\mathrm{iso}} = \frac{4\pi A_b}{P_b^2}. \tag*{(39)}

This value is maximized (equal to 1) for a perfect circle of the graph boundary hull and decreases with elongation or irregularity of the boundary shape. For all baseline methods, the notion of boundary nodes does not exist, hence we use alpha shapes [62] to estimate the concave hull of baseline graphs. The value of α\alpha is estimated using bisection, with a maximum value α=5\alpha= 5 and a maximum of 10 bisection steps. The bisection selects the largest α\alpha for which all nodes are still included in the concave hull and the hull forms a single connected polygonal domain.

Squareness. To compute squareness of a graphs’ hull, we consider all possible planar rotations of the boundary region and identify the orientation that minimizes the area of the axis-aligned bounding square. Let AboxA_{\mathrm{box}} be the area of this minimum-area enclosing square. The squareness coefficient is

rsquare=AbAbox.(40)r_{\mathrm{square}} = \frac{A_b}{A_{\mathrm{box}}}. \tag*{(40)}

This value lies in the interval [0,1][0,1], with higher values indicating that the boundary closely conforms to a square, up to rotation. This metric is rotationally invariant and captures alignment with square layouts.

Graph Generators

We evaluate graph algorithms using synthetic datasets generated from well-established random graph models, focusing on classical, planar, and diffusion-based generators. Additionally, we include the House of Graphs (HOG) [48] dataset in the benchmarks, which includes, to the best of our knowledge, the most comprehensive connected planar graph dataset, albeit drawn without an embedding. Across all generators, benchmark-favorable settings and method-specific adaptations described throughout this chapter are applied to align each approach with the benchmark objectives. While computational budgets are kept as comparable as possible, diffusion-based models still require substantially higher training time. For all methods that do not provide an embedding by default, we use the force-directed spring layout to pre-process the graph to be embedded [49] using the NetworkX library [63]. This library is also used in the following described graph generators.

Classical Random Graph Models

Erdős–Rényi (ER) Graphs. We use the G(n,p)G(n,p) model, where each edge between the nn nodes is independently included with probability p=2mn(n−1)p = \frac{2m}{n(n-1)}. This model serves as a uniform random baseline and produces graphs with a binomial degree distribution, implemented using networkx.erdos_renyi_graph [11].

For benchmarking, we have generated 10,000 graphs per configuration, with edge probabilities ranging from 0.04 to 0.10. Connectivity is enforced, and disconnected graphs are filtered out. Higher edge densities substantially reduce the proportion of planar graphs, reflecting the well-known trade-off between connectivity and planarity in sparse regimes. Specifically, this method does not produce any planar graph for the second and third benchmark, see Appendix § 15. Despite extensive exploration of this parameter space, Erdős–Rényi graphs never achieve the best performance in our evaluations. This behavior is expected because the model is constraint-free and not goal-directed.

Exponential Random Graph Models (ERGM). Graphs are sampled from an exponential distribution over structural features using a Metropolis–Hastings MCMC sampler:

P(G)∝exp⁡(βedge⋅#edges+βtriangle⋅#triangles+βstar⋅#2-stars).(41)P(G) \propto\exp\left(\beta_{edge}\cdot\#\mathrm{edges}+\beta_{triangle}\cdot\#\mathrm{triangles}+\beta_{star}\cdot\#\mathrm{2\text{-}stars}\right). \tag*{(41)}

We use the implementation from [64] performing 1000 MCMC steps after burn-in. Parameters are selected from βedge∈{−2.5,−2.0,−1.5}\beta_{edge} \in\{-2.5,-2.0,-1.5\} and βtriangle∈{0.0,0.1}\beta_{triangle} \in\{0.0,0.1\} with fixed βstar=0.0\beta_{star}=0.0. Compared to other models, ERGMs involve a large hyperparameter space and are more difficult to tune, as certain parameter settings lead to disconnected graphs, while others produce dense, non-planar structures. As ERGMs do not enforce planarity, many sampled graphs violate planarity.

Planar Graph Generators

Plantri. We generate triangulated planar graphs using the PLANTRI software [14], which guarantees planarity and non-redundancy via combinatorial generation and isomorphism rejection. Due to expensive I/O and limited scaling beyond 15–20 nodes, we evaluate Plantri only on the first 2,000 sampled graphs.

Boltzmann Sampler. Uniform planar graphs are sampled using a Boltzmann sampler based on analytic combinatorics [15], implemented via the planar_graph_sampler library [65]. This approach generates unbiased planar graphs with expected quadratic time complexity. Due to the relatively high computational cost of this approach, we evaluate 50 graphs per benchmark, as larger sample sizes are a lot more expensive compared to our method.

Delaunay Triangulations. A set of ∣G∣−b>0|G|-b>0 points are sampled uniformly from circular and square domains, while an additional bb boundary points placed along the domain boundary equidistantly. The resulting point set is triangulated according to the Delaunay criterion using scipy.spatial.Delaunay. For circular target metrics, boundary points are sampled along a circle to enforce a larger isoperimetric ratio, while an analogous construction is used for the squareness metric.

Lattice Graphs. Planar grid graphs are generated as regular 2D lattices using networkx.grid_2d_graph. For a target graph size, we select an approximately square grid with 4-neighbor connectivity; in the circular setting, rows are wrapped into rings. These graphs provide deterministic spatial baselines with highly regular structure and no triangles, although the final node count may differ slightly from the target size.

Deep Generative Graph Models

We further include representative modern Deep Generative Models (DGM) for graph generation as baselines, including DiGress, GDSS and MuDiff [38, 39, 43]. These models are distribution-learning approaches that generate graphs by sampling from learned probabilistic processes. While DiGress and MuDiff provide a conditional sampling mechanisms towards target properties, they do not enforce hard constraints during generation. The same applies to GDSS, which is a purely unconditional model, but can be enhanced with PRODIGY [40] guidance towards single-objective target properties. Due to this, all models are evaluated by selecting candidates according to the procedure described in Section F to adhere to as many constraints as possible for a fair comparison.

DiGress. DiGress is a discrete diffusion model for categorical graph generation with optional conditional guidance [38]. The model iteratively denoises graph structures in discrete space and enables conditioning through learned property predictors. In our evaluation, DiGress is first trained once in an unconditional manner on the full HOG dataset to learn a general distribution over connected graphs. Subsequently, for each benchmark, we train a dedicated property regressor that estimates the respective benchmark-specific objective (e.g., number of triangles and isoperimetric ratio in Benchmark G.4) which is trained using a per-metric standardized mean-squared error loss, so that metrics on different scales contribute comparably to the objective. This regressor is then used within the conditional generation mechanism of DiGress to guide sampling toward graphs that optimize the target objective.

All architectural settings follow the original DiGress implementation. Minor adjustments to the number of diffusion steps and training epochs were applied to ensure stable convergence on the HOG dataset. More detailed hyperparameters are shown in Table 5.

HyperparameterValue
Unconditional epochs1000
Unconditional batch size8
Unconditional learning rate2⋅10−42 \cdot10^{-4}
Diffusion steps500
Regressor hidden dimension128
Regressor dropout0.1
Regressor epochs200
Regressor batch size32
Regressor learning rate10−310^{-3}
Regressor weight decay10−510^{-5}
Regressor schedulerCosineAnnealingLR
Inference Guidance scale2.0

Table 5. Hyperparameters for DiGress with property-regressor guidance.

We also note that the original DiGress planar benchmark was evaluated on the SPECTRE planar dataset, consisting of 200 graphs of fixed size (64 nodes) generated exclusively as Delaunay triangulations. This dataset exhibits limited structural diversity compared to HOG, which includes 4000 graphs of variable size (up to 250 nodes) and unrestricted topology. Under this more challenging regime, only a subset of unconditionally generated samples satisfies the planarity constraint (33%), while the original work of Vignac et al. [38] report 75% validity of planar graphs in the simpler dataset regime used.

GDSS with PRODIGY Guidance. GDSS is a score-based generative model that learns continuous diffusion dynamics over adjacency matrices and node features [39]. In our evaluation, an unconditional GDSS model is first trained on the HOG dataset to learn a general distribution over graph structures. Because GDSS does not natively support conditional generation, we apply guidance using the PRODIGY framework [40], which steers sampling toward specified single-objective target properties. We select the target node number as the conditioning signal during graph generation with Prodigy. More detailed hyperparameters are shown in Table 6 to enhance reproducibility.

HyperparameterValue
Training epochs2000
Batch size64
Learning rate10−210^{-2}
EMA decay0.999
Diffusion steps1000
Predictor / CorrectorEuler / Langevin

Table 6. Hyperparameters for GDSS with PRODIGY guidance.

MuDiff. MuDiff is a diffusion-based model originally developed for joint structure–geometry generation in molecular graphs [43]. Although designed for three-dimensional molecular systems, the architecture can be adapted to general graph generation tasks. For compatibility with our planar graph setting, we preprocess HOG graphs using force-directed spring layout and embed them in three-dimensional space by assigning zero values to the third coordinate. Benchmark-specific conditional models are trained following the original architectural specifications. Accordingly, four conditional models are trained independently, one for each benchmark scenario. Hyperparameters are tuned separately for each benchmark, in Table 7 we report the ranges. We further note that, unlike the other deep generative methods considered in this study, MuDiff directly generates graphs together with their geometric embeddings, rather than requiring a separate layout or embedding procedure, making it a relevant comparison to state of the art conditional graph generation methods in unconstrained settings.

HyperparameterValue
Diffusion steps500
Noise schedulepolynomial_2
Diffusion lossl2
Learning rate[5⋅10−4,5⋅10−5][5 \cdot10^{-4}, 5 \cdot10^{-5}]
Batch size[2,4][2,4]
Training epochs[400,600][400,600]
EMA decay0.999
Encoder layers6
Embedding dimension128
Edge embedding dimension128
Graph embedding dimension32
Attention heads8

Table 7. Hyperparameters for MuDiff.

Ranking-Based Graph Selection for Baseline Evaluations

We consider a set of candidate graphs G~i\widetilde{G}_i produced by a given method. Candidates are first filtered for planarity (this can still contain graphs with edge intersections). Only planar graphs are retained for further processing through the benchmark pipeline, resulting in the set of graphs GiG_i.

For each retained graph, we compute benchmark metrics M(Gi)\mathcal{M}(G_i) and the final reward rir_i (see § 3.6). The additional quantities used for ranking are split according to the generator class and are described separately for classical and diffusion-based methods below.

Classical Generators For classical generators, we randomly sample candidates according to the generator specifications and report metrics, and constraint satisfaction. For each generator, we retain only the graphs that satisfy most constraints. If multiple graphs satisfy equally many constraints, we report the graph with highest reward among them. As visible in the benchmarks (cf. Appendix § 15), classical generators rarely satisfy all constraints.

Deep Generative Models For deep generative models, we sample approximately M≈1000M \approx1000 candidate graphs per generator. Since generated samples may contain small disconnected components, we retain only the largest connected component GiG_i with size ∣Gi∣|G_i| for subsequent evaluation, ensuring that otherwise valid planar structures are not discarded. Graph-size proximity is prioritized to ensure comparability with the target benchmark configuration: since DGMs do not explicitly control the number of nodes during generation, samples can vary substantially in size, and differences in graph size can strongly affect both evaluation metrics and reward. We therefore first rank candidates by their distance to the target size. Let ∣G⋆∣|G^\star| denote the target size and define di=∣∣Gi∣−∣G⋆∣∣d_i = \lvert|G_i| - |G^\star| \rvert and

bi={0,di≤10,1+⌊di−1010⌋,otherwise.(42)b_i = \begin{cases} 0, & d_i \le10, \\ 1 + \left\lfloor\frac{d_i-10}{10} \right\rfloor, & \text{otherwise}. \end{cases} \tag*{(42)}

The smaller bib_i is for a graph, the higher the graph is ranked. We further compute the force-directed spring layout embedding (omitted for MuDiff) and evaluate the constraints satisfaction. Constraint statistics are recorded but not used for ranking, as prioritizing them was empirically found to strongly disadvantage these models compared to other generators.

The final selected graph is the highest-scoring candidate among those with the closest graph-size match to the target benchmark configuration, and is reported together with its constraint statistics.

Extended Results on Benchmarks

This section reports the full benchmark results (Table 8–Table 11) and complements them with additional qualitative comparisons (Figure 8–Figure 11).

Methodrrrisor_{\mathrm{iso}}cginic_{\mathrm{gini}}cclustc_{\mathrm{clust}}λ2(L)\lambda_2(L)∣G∣|G|αmin⁡\alpha_{\min}cℓc_{\ell}deg⁡max⁡\deg_{\max}cplc_{\mathrm{pl}}Emb.
Target1.01.00.10.21.05020∘20^\circℓ1\ell_18TrueTrue
Ours0.756 ±0.0040.960 ±0.0200.090 ±0.0020.200 ±0.0040.050 ±0.00350✓✓✓✓✓
HOG0.3820.8410.0310.0000.07547✓✓✓✗✗
Delaunay0.6980.9320.1820.2170.08750✗✗✓✓✓
Plantri0.4450.3770.0340.4170.03950✗✓✓✗✗
Boltzmann0.5450.4680.2790.2480.06452✓✓✓✗✗
Erdos–Rényi0.4670.6970.1950.0430.00650✓✓✓✗✗
ERGM0.5260.6690.2720.1140.02042✓✓✓✗✗
Lattice0.4310.9320.0510.0000.04356✓✗✓✓✓
DiGress0.6710.4580.1810.4560.5798✗✓✓✗✗
GDSS-Prodigy0.5570.4950.20.160.00643✓✗✓✗✗
MuDiff0.5200.1400.4960.5160.88919✗✗✓✗✓

Table 8. Extended results for power grid in circular hull with 50 nodes. Note that although MuDiff achieves highest spectral gap, this is achieved by not respecting planarity constraints and target graph size. Generally, for smaller graph the spectral gap tends to be higher, as well as for non-planar graphs.

Figure 8. Results for the power grid case for our method and all baselines.

MethodReward rrGeom. risor_{\mathrm{iso}}Topological TT∣G∣|G|αmin⁡\alpha_{\min}cℓc_{\ell}deg⁡max⁡\deg_{\max}cplc_{\mathrm{pl}}Emb.
Target1.01.0406020°ℓ1\ell_18TrueTrue
Ours0.979 ±0.0220.920 ±0.08039.91 ±0.0960✓✓✓✓✓
HOG0.8560.8926460✓✓✓✓✗
Delaunay0.7590.94910760✗✗✓✓✓
Plantri0.4940.31211660✗✗✓✗✗
Boltzmann0.8750.6333856✗✗✗✗✗
Erdős–Rényi0.4150.709060✗✓✓✗✗
ERGM0.3330.500029✓✓✓✗✓
Lattice0.4820.932063✓✗✓✗✓
DiGress0.5690.4221510✗✓✓✗✗
GDSS-Prodigy0.5520.4731250✗✗✗✗✗
MuDiff0.4330.1731642✗✗✗✗✓

Table 11. Extended results for graph in circular hull with 60 nodes and 40 triangles.

Figure 11. Results for the graph in a circular hull with 40 triangles case for our method and all baselines.

Some benchmark families, such as Delaunay triangulations and lattice grids, provide explicit planar embeddings by construction. For generators without intrinsic geometric embeddings, including the HOG dataset, node coordinates for visualization and geometric evaluation are computed using a force-directed spring layout [49]. Each table presents the overall reward (cf. Equation (14)), which quantifies the multi-objective optimization score, together with the individual metrics and constraint satisfaction for all baselines, including both conventional algorithms and deep generative models. The constraint ℓ1\ell_1 denotes whether all edge lengths in a graph satisfy ℓ∈[0.75,2.5]\ell\in[0.75, 2.5], where for ℓ2\ell_2 the interval is [0.1,3.5][0.1, 3.5]. We additionally include 1-sigma standard deviations for our method in all tables, as well as constraint satisfaction for each baseline. We further denote with Emb., whether a baseline produces an embedding by default, or if the graph is post-processed using the force-directed spring layout. Table 12 additionally reports the per-metric relative deviations across all four benchmarks, marking each metrics’ contribution to the aggregate reward explicit (Equation (14)).

Benchmark 1: Power Grid in Circular Hull

Benchmark 2: Urban Road Grid in Circular Hull

Table 9: Extended result for urban road grid in circular hull with 80 nodes. Note that although some baselines marginally improve individual metrics, the combined multi-objective reward is highest for our method that balances the individual metrics closest to the target on average. Additionally, the full constraint set is not respected by most baselines, e.g. ERGM beats the angular resolution metric, but does not satisfy target graph size.

MethodReward rrReward risor_{\mathrm{iso}}Geometric SlS_lGeometric ARTopo. cginic_{\mathrm{gini}}∣G∣|G|αmin⁡\alpha_{\min}cℓc_\elldeg⁡max⁡\deg_{\max}cplc_{\mathrm{pl}}Emb.
Target1.01.00.70.80.28020∘20^\circℓ1\ell_18TrueTrue
Ours0.942 ±0.0110.952 ±0.0270.82 ±0.020.755 ±0.0190.163 ±0.0180✓✓✓✓✓
HOG0.7820.4030.8320.4860.15880✗✗✓✗✗
Delaunay0.9140.9520.7580.4450.20080✗✗✓✓✓
Plantri–––––––––✗
Boltzmann0.7980.6490.7720.3640.28281✗✗✗✗✗
Erdős–Rényi–––––––––✗
ERGM0.8740.5740.7970.8160.27645✓✓✓✓✗
Lattice0.7990.9480.5780.7500.04380✓✗✓✓✓
DiGress0.7510.4790.8230.3360.2748✗✓✓✗✗
GDSS-Prodigy0.8340.2910.8020.7900.18576✗✗✓✗✗
MuDiff0.5340.3380.0060.4620.25456✗✗✓✗✓

Table 9.

Results for the urban road grid case for our method and all baselines

Figure 9. Results for the urban road grid case for our method and all baselines.

Benchmark 3: Strongly Connected Mesh in Square Hull

Table 10: Extended results for highly connected mesh in square hull with 100 nodes. This benchmark relaxes the constraint set compared to the other benchmarks, providing insights to graph generation closer to an unconstrained setting. Note that in this benchmark, MuDiff achieves highest spectral gap, but does so by strongly dissatisfying planarity constraints.

Methodrrrsquarer_{\mathrm{square}}λ2(L)\lambda_2(L)∣G∣|G|αmin⁡\alpha_{\min}cℓc_{\ell}degmax⁡\mathrm{deg}_{\max}cplc_{\mathrm{pl}}Emb.
Target1.01.00.3001001∘1^\circℓ2\ell_215TrueTrue
Ours0.647 ±0.010.887 ±0.060.064 ±0.006100✓✓✓✓✓
HOG0.3600.5430.002101✓✓✓✗✗
Delaunay0.5780.8630.039100✗✓✓✓✓
Plantri––––––––✗
Boltzmann0.5020.6270.040100✗✓✓✗✗
Erdős–Rényi––––––––✗
ERGM0.4870.4860.05717✓✓✓✓✗
Lattice0.5871.0000.029100✓✓✓✓✓
DiGress0.6990.3850.2169✗✓✓✗✗
GDSS-Prodigy0.3860.5450.0172✓✓✓✗✗
MuDiff0.4100.1970.91885✗✗✓✗✓

Table 10.

Results for the mesh in square hull high spectral gap for our method and all baselines

Figure 10. Results for the mesh in square hull high spectral gap for our method and all baselines.

Benchmark 4: Graph with 40 triangles in circular hull

Benchmark / MethodRewarddisod_{\mathrm{iso}}dginid_{\mathrm{gini}}dclustd_{\mathrm{clust}}dλ2d_{\lambda_2}
Benchmark 1: Resilient Power Grid
MethodRewarddisod_{\mathrm{iso}}dginid_{\mathrm{gini}}dclustd_{\mathrm{clust}}dλ2d_{\lambda_2}
Ours0.756 ±0.0040.020 ±0.0100.053 ±0.0110.000 ±0.0100.905 ±0.005
HOG0.3820.08640.52671.00000.8605
Delaunay0.6980.03520.29080.04080.8399
Plantri0.4450.45240.49250.35170.9249
Boltzmann0.5450.36240.47230.10710.8797
Erdős–Rényi0.4670.17860.32200.64610.9881
ERGM0.5260.19830.46240.27390.9608
Lattice0.4310.03520.32451.00000.9175
DiGress0.6710.37170.28830.39020.2666
GDSS-Prodigy0.5570.33780.33330.11110.9881
MuDiff0.5200.75440.66440.44130.0588
Benchmark 2: Urban Road Grid
MethodRewarddisod_{\mathrm{iso}}dSLd_{S_L}dARd_{AR}dginid_{\mathrm{gini}}
Ours0.942 ±0.0110.025 ±0.0140.079 ±0.0120.029 ±0.0130.102 ±0.030
HOG0.7820.42550.08620.24420.1173
Delaunay0.9140.02460.03980.28510.0000
Plantri—————
Boltzmann0.7980.21290.04890.37460.1701
Erdős–Rényi—————
ERGM0.8740.27060.06480.00990.1597
Lattice0.7990.02670.09550.03230.6461
DiGress0.7510.35230.08080.40850.1561
GDSS-Prodigy0.8340.54920.06790.00630.0390
MuDiff0.5340.49480.98300.26780.1189
Benchmark 3: Strongly Connected Mesh
MethodRewarddsquared_{\mathrm{square}}dλ2d_{\lambda_2}
Ours0.647 ±0.0100.060 ±0.0340.648 ±0.027
HOG0.3600.29620.9868
Delaunay0.5780.07350.7699
Plantri———
Boltzmann0.5020.22930.7647
Erdős–Rényi———
ERGM0.4870.34590.6807
Lattice0.5870.00000.8237
DiGress0.6990.44400.1628
GDSS-Prodigy0.3860.29450.9355
MuDiff0.4100.67080.5074
Benchmark 4: Graph with 40 Triangles
MethodRewarddisod_{\mathrm{iso}}dTd_T
Ours0.979 ±0.0220.042 ±0.0430.0011 ±0.0011
HOG0.8560.05710.2308
Delaunay0.7590.02620.4558
Plantri0.4940.52440.4872
Boltzmann0.8750.22470.0256
Erdős–Rényi0.4150.17031.0000
ERGM0.3330.33331.0000
Lattice0.4820.03521.0000
DiGress0.5690.40650.4545
GDSS-Prodigy0.5520.35780.5385
MuDiff0.4330.70500.4286

Table 12. Per-metric relative deviations dmd_m reconstructed from the rounded metrics in Tables 8–11 in addition to the absolute reward. Lower is better for the deviation metrics; each metric contributes dm/∣M∣d_m/|\mathcal{M}| to the reward.

References

  1. [1]Marc Barthélemy. Spatial networks. Physics Reports, 499(1):1–101, 2011. doi: https://doi.org/10.1016/j.physrep.2010.11.002. URL https://www.sciencedirect.com/science/article/pii/S037015731000308X.
  2. [2]Jiaxuan You, Bowen Liu, Zhitao Ying, Vijay Pande, and Jure Leskovec. Graph Convolutional Policy Network for Goal-Directed Molecular Graph Generation. In Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. URL https://proceedings.neurips.cc/paper_files/paper/2018/hash/d6067e8ef2ba9c540798ebbde31177e8-Abstract.html.arxiv.org/abs/1806.02473
  3. [3]Geoff Boeing. OSMnx: New methods for acquiring, constructing, analyzing, and visualizing complex street networks. Computers, Environment and Urban Systems, 65:126–139, 2017. doi: https://doi.org/10.1016/j.compenvurbsys.2017.05.004. URL https://www.sciencedirect.com/science/article/pii/S0198971516303970.
  4. [4]Reza Kakooee and Benjamin Dillenburger. Reimagining space layout design through deep reinforcement learning. Journal of Computational Design and Engineering, 11(3):43–55, June 2024. doi: 10.1093/jcde/qwae025. URL https://doi.org/10.1093/jcde/qwae025.
  5. [5]Maximilian E. Ororbia and Gordon P. Warn. Design Synthesis Through a Markov Decision Process and Reinforcement Learning Framework. Journal of Computing and Information Science in Engineering, 22 (021002), July 2021. doi: 10.1115/1.4051598. URL https://doi.org/10.1115/1.4051598.
  6. [6]Nicolas Hochuli and Tino Stankovic. Inverse Design of Origami for Trajectory Following Using Deep Learning. Journal of Mechanisms and Robotics, 17(091014), July 2025. ISSN 1942-4302. doi: 10.1115/1.4069199. URL https://doi.org/10.1115/1.4069199.
  7. [7]Andreas Walker and Tino Stankovic. Algorithmic design of origami mechanisms and tessellations. Communications Materials, 3(1):4, January 2022. doi: 10.1038/s43246-022-00227-5. URL https://www.nature.com/articles/s43246-022-00227-5.DOI
  8. [8]Laszlo Bleker, Kam-Ming Mark Tam, and Pierluigi D’Acunto. A graph-based grammar for structural design using deep reinforcement learning. In Proceedings of the IASS 2024 Symposium: Redefining the Art of Structural Design, pages 1–10, Zurich, Switzerland, 2024. International Association for Shell and Spatial Structures. URL https://www.ingentaconnect.com/contentone/iass/piass/2024/00000011/art00014.
  9. [9]Will Thacher, Yulong Pan, and Per-Olof Persson. Optimization of a triangular delaunay mesh generator using reinforcement learning. Computer-Aided Design, 189:103964, 2025. ISSN 0010-4485. doi: https://doi.org/10.1016/j.cad.2025.103964. URL https://www.sciencedirect.com/science/article/pii/S0010448525001253.
  10. [10]Xiaojie Guo and Liang Zhao. A Systematic Survey on Deep Generative Models for Graph Generation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(5):5370–5390, May 2023. doi: 10.1109/TPAMI.2022.3214832. URL https://ieeexplore.ieee.org/abstract/document/9920219.DOI
  11. [11]P Erdős and A Rényi. On random graphs I. Publicationes Mathematicae Debrecen, 6:290–297, 1959.
  12. [12]Albert-László Barabási and Réka Albert. Emergence of scaling in random networks. Science, 286(5439):509–512, 1999. doi: 10.1126/science.286.5439.509.DOI
  13. [13]Duncan J. Watts and Steven H. Strogatz. Collective dynamics of ‘small-world’ networks. Nature, 393:440–442, 1998. doi: 10.1038/30918. URL https://www.nature.com/articles/30918. Publisher: Nature Publishing Group.DOI
  14. [14]Gunnar Brinkmann and Brendan D. McKay. Fast generation of planar graphs. In MATCH-COMMUNICATIONS IN MATHEMATICAL AND IN COMPUTER CHEMISTRY, volume 58, pages 323–357, 2007. URL http://hdl.handle.net/1854/LU-397541.
  15. [15]Eric Fusy. Uniform random sampling of planar graphs in linear time. Random Struct. Algorithms, 35(4):464–522, December 2009.
  16. [16]Chengyi Liu, Wenqi Fan, Yunqing Liu, Jiatong Li, Hang Li, Hui Liu, Jiliang Tang, and Qing Li. Generative Diffusion Models on Graphs: Methods and Applications, August 2023. URL http://arxiv.org/abs/2302.02591. arXiv:2302.02591 [cs].
  17. [17]Manuel Madeira, Clement Vignac, Dorina Thanou, and Pascal Frossard. Generative modelling of structurally constrained graphs, 2024. URL https://arxiv.org/abs/2406.17341.
  18. [18]Jiachi Zhao, Zehong Wang, Yamei Liao, Chuxu Zhang, and Yanfang Ye. Controllable Graph Generation with Diffusion Models via Inference-Time Tree Search Guidance, October 2025. URL http://arxiv.org/abs/2510.10402. arXiv:2510.10402 [cs].
  19. [19]Chence Shi, Minkai Xu, Zhaocheng Zhu, Weinan Zhang, Ming Zhang, and Jian Tang. GraphAF: a Flow-based Autoregressive Model for Molecular Graph Generation, February 2020. URL http://arxiv.org/abs/2001.09382. arXiv:2001.09382 [cs].
  20. [20]Yash Khemchandani, Stephen O’Hagan, Soumitra Samanta, Neil Swainston, Timothy J. Roberts, Danushka Bollegala, and Douglas B. Kell. DeepGraphMolGen, a multi-objective, computational strategy for generating molecules with desirable properties: a graph convolution and reinforcement learning approach. Journal of Cheminformatics, 12(1), December 2020. doi: 10.1186/s13321-020-00454-3. URL https://jcheminf.biomedcentral.com/articles/10.1186/s13321-020-00454-3.DOI
  21. [21]Zhenpeng Zhou, Steven Kearnes, Li Li, Richard N. Zare, and Patrick Riley. Optimization of Molecules via Deep Reinforcement Learning. Scientific Reports, 9(1):10752, July 2019. doi: 10.1038/s41598-019-47148-x. URL http://arxiv.org/abs/1810.08678. arXiv:1810.08678 [cs].
  22. [22]Gregor N. C. Simm, Robert Pinsler, and José Miguel Hernández-Lobato. Reinforcement Learning for Molecular Design Guided by Quantum Mechanics. In Proceedings of the 37th International Conference on Machine Learning (ICML), volume 119 of Proceedings of Machine Learning Research, pages 8921–8931. PMLR, 2020. URL http://proceedings.mlr.press/v119/simm20b.html.arxiv.org/abs/2002.07717
  23. [23]Chencheng Xu, Qiao Liu, Minlie Huang, and Tao Jiang. Reinforced Molecular Optimization with Neighborhood-Controlled Grammars, November 2020. URL http://arxiv.org/abs/2011.07225. arXiv:2011.07225 [cs].
  24. [24]Hans-Jorg Kreowski, Renate Klempien-Hinrichs, and Sabine Kuske. Some Essentials of Graph Transformation. Studies in Computational Intelligence, 2006. doi: 10.1007/978-3-540-33461-3_9.
  25. [25]Eitan Altman. Constrained Markov Decision Processes: Stochastic Modeling. Routledge, Boca Raton, 1 edition, December 2021. ISBN 978-1-315-14022-3. doi: 10.1201/9781315140223. URL https://www.taylorfrancis.com/books/9781315140223.DOI
  26. [26]Yongshuai Liu, Avishai Halev, and Xin Liu. Policy learning with constraints in model-free reinforcement learning: A survey. In Zhi-Hua Zhou, editor, Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21, pages 4508–4515. International Joint Conferences on Artificial Intelligence Organization, 8 2021. doi: 10.24963/ijcai.2021/614. URL https://doi.org/10.24963/ijcai.2021/614. Survey Track.
  27. [27]John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal Policy Optimization Algorithms, 2017. URL http://arxiv.org/abs/1707.06347.
  28. [28]Yi Liu, Limei Wang, Meng Liu, Xuan Zhang, Bora Oztekin, and Shuiwang Ji. Spherical Message Passing for 3D Graph Networks, 2022. URL http://arxiv.org/abs/2102.05013. arXiv:2102.05013 [cs].
  29. [29]Johannes Gasteiger, Janek Groß, and Stephan Günnemann. Directional Message Passing for Molecular Graphs, April 2022. URL http://arxiv.org/abs/2003.03123. arXiv:2003.03123 [cs].
  30. [30]Victor Garcia Satorras, Emiel Hoogeboom, and Max Welling. E(n) Equivariant Graph Neural Networks, 2022. URL http://arxiv.org/abs/2102.09844. arXiv:2102.09844 [cs].
  31. [31]Keyulu Xu, Chengtao Li, Yonglong Tian, Tomohiro Sonobe, Ken-ichi Kawarabayashi, and Stefanie Jegelka. Representation Learning on Graphs with Jumping Knowledge Networks, 2018. URL http://arxiv.org/abs/1806.03536. arXiv:1806.03536 [cs].
  32. [32]Yujia Li, Chenjie Gu, Thomas Dullien, Oriol Vinyals, and Pushmeet Kohli. Graph Matching Networks for Learning the Similarity of Graph Structured Objects, May 2019. URL http://arxiv.org/abs/1904.12787. arXiv:1904.12787 [cs].
  33. [33]Danilo Jimenez Rezende and Shakir Mohamed. Variational Inference with Normalizing Flows, June 2016. URL http://arxiv.org/abs/1505.05770. arXiv:1505.05770 [stat].
  34. [34]Nikolaus Hansen and Andreas Ostermeier. Completely Derandomized Self-Adaptation in Evolution Strategies. Evolutionary Computation, 9(2):159–195, June 2001. doi: 10.1162/106365601750190398. URL https://ieeexplore.ieee.org/document/6790628.DOI
  35. [35]Gal Dalal, Krishnamurthy Dvijotham, Matej Vecerik, Todd Hester, Cosmin Paduraru, and Yuval Tassa. Safe Exploration in Continuous Action Spaces, January 2018. URL http://arxiv.org/abs/1801.08757. arXiv:1801.08757 [cs].
  36. [36]Jérôme Kunegis, Jun Sun, and Eiko Yoneki. Guided Graph Generation: Evaluation of Graph Generators in Terms of Network Statistics, and a New Algorithm, March 2023. URL http://arxiv.org/abs/2303.00635. arXiv:2303.00635 [cs].
  37. [37]Andreas Bergmeister, Karolis Martinkus, Nathanaël Perraudin, and Roger Wattenhofer. Efficient and Scalable Graph Generation through Iterative Local Expansion, May 2024. URL http://arxiv.org/abs/2312.11529. arXiv:2312.11529 [cs].
  38. [38]Clement Vignac, Igor Krawczuk, Antoine Siraudin, Bohan Wang, Volkan Cevher, and Pascal Frossard. DiGress: Discrete Denoising diffusion for graph generation, May 2023. URL http://arxiv.org/abs/2209.14734. arXiv:2209.14734 [cs].
  39. [39]Jaehyeong Jo, Seul Lee, and Sung Ju Hwang. Score-based generative modeling of graphs via the system of stochastic differential equations, 2022. URL https://arxiv.org/abs/2202.02514.
  40. [40]Kartik Sharma, Srijan Kumar, and Rakshit Trivedi. Diffuse, sample, project: Plug-and-play controllable graph generation. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 44545–44564. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/sharma24b.html.
  41. [41]Bidisha Samanta, Abir De, Gourhari Jana, Pratim Kumar Chattaraj, Niloy Ganguly, and Manuel Gomez-Rodriguez. Newae: A deep generative model for molecular graphs, 2019. URL https://arxiv.org/abs/1802.05283.
  42. [42]Minkai Xu, Lantao Yu, Yang Song, Chence Shi, Stefano Ermon, and Jian Tang. Geodiff: a geometric diffusion model for molecular conformation generation, 2022. URL https://arxiv.org/abs/2203.02923.
  43. [43]Chengqing Hua, Sitao Luan, Minkai Xu, Rex Ying, Jie Fu, Stefano Ermon, and Doina Precup. Mudiff: Unified diffusion for complete molecule generation, 2024. URL https://arxiv.org/abs/2304.14621.
  44. [44]Victor-Alexandru Darvariu, Stephen Hailes, and Mirco Musolesi. Goal-directed graph construction using reinforcement learning. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences, 477(2254):20210168, October 2021. doi: 10.1098/rspa.2021.0168. URL http://arxiv.org/abs/2001.11279. arXiv:2001.11279 [cs].
  45. [45]Mingshuo Nie, Dongming Chen, and Dongqi Wang. Reinforcement Learning on Graphs: A Survey. IEEE Transactions on Emerging Topics in Computational Intelligence, 7(4):1065–1082, August 2023. doi: 10.1109/TETCI.2022.3222545. URL https://ieeexplore.ieee.org/document/10121200/.DOI
  46. [46]Egor Kraev. Grammars and reinforcement learning for molecule optimization, November 2018. URL http://arxiv.org/abs/1811.11222. arXiv:1811.11222 [cs].
  47. [47]Guoliang He, Sean Parker, and Eiko Yoneki. X-RLflow: Graph Reinforcement Learning for Neural Network Subgraphs Transformation.
  48. [48]Gunnar Brinkmann, Kris Coolsaet, Jan Goedgebeur, and Hadrien Mélot. House of Graphs: A database of interesting graphs. Discrete Applied Mathematics, 161:311–314, 2013. doi: 10.1016/j.dam.2012.07.018. URL https://www.sciencedirect.com/science/article/pii/S0166218X12002831.DOI
  49. [49]Thomas M. J. Fruchterman and Edward M. Reingold. Graph drawing by force-directed placement. Software: Practice and Experience, 21(11):1129–1164, 1991. doi: https://doi.org/10.1002/spe.4380211102. URL https://onlinelibrary.wiley.com/doi/abs/10.1002/spe.4380211102.
  50. [50]Karolis Martinkus, Andreas Loukas, Nathanaël Perraudin, and Roger Wattenhofer. SPECTRE: Spectral Conditioning Helps to Overcome the Expressivity Limits of One-shot Graph Generators, June 2022. URL http://arxiv.org/abs/2204.01613. arXiv:2204.01613 [cs].
  51. [51]Richard S. Sutton, Doina Precup, and Satinder Singh. Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning. Artificial Intelligence, 112(1):181–211, 1999. ISSN 0004-3702. doi: https://doi.org/10.1016/S0004-3702(99)00052-1. URL https://www.sciencedirect.com/science/article/pii/S0004370299000521.
  52. [52]Yoav I. H. Parish and Pascal Müller. Procedural modeling of cities. In Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques, SIGGRAPH ’01, page 301–308, New York, NY, USA, 2001. Association for Computing Machinery. ISBN 158113374X. doi: 10.1145/383259.383292. URL https://doi.org/10.1145/383259.383292.
  53. [53]James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. Composable transformations of Python+NumPy programs, 2018. URL http://github.com/jax-ml/jax.
  54. [54]Matthias Fey and Jan Eric Lenssen. Fast Graph Representation Learning with PyTorch Geometric, April 2019. URL http://arxiv.org/abs/1903.02428. arXiv:1903.02428 [cs].
  55. [55]Antonin Raffin, Ashley Hill, Adam Gleave, Anssi Kanervisto, Maximilian Ernestus, and Noah Dormann. Stable-baselines3: Reliable reinforcement learning implementations. Journal of Machine Learning Research, 22(268):1–8, 2021. URL http://jmlr.org/papers/v22/20-1364.html.
  56. [56]Diederik P. Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization, January 2017. URL http://arxiv.org/abs/1412.6980. arXiv:1412.6980 [cs].
  57. [57]Robert Tjarko Lange. exosax: JAX-based Evolution Strategies, December 2022. URL http://arxiv.org/abs/2212.04180. arXiv:2212.04180 [cs].
  58. [58]Mikhail Drobychevsky and Denis Turdakov. Random Graph Modeling: A survey of the concepts. ACM Computing Surveys, 52(6):1–36, November 2019. doi: 10.1145/3369782. URL http://arxiv.org/abs/2403.14415.
  59. [59]Gavin J. Mooney, Helen C. Purchase, Michael Wybrow, and Stephen G. Kobourov. The Multi-Dimensional Landscape of Graph Drawing Metrics. In 2024 IEEE 17th Pacific Visualization Conference (PacificVis), pages 122–131, April 2024. doi: 10.1109/PacificVis60374.2024.00022. URL https://ieeexplore.ieee.org/document/10541779.DOI
  60. [60]Gavin J. Mooney, Tim Hegemann, Alexander Wolff, Michael Wybrow, and Helen C. Purchase. Universal Quality Metrics for Graph Drawings: Which Graphs Excite Us Most? In Vida Dujmović and Fabrizio Montecchiani, editors, 33rd International Symposium on Graph Drawing and Network Visualization (GD 2025), volume 357, pages 30:1–30:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi: 10.4230/LIPIcs.GD.2025.30. URL https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.GD.2025.30.
  61. [61]Helen C. Purchase. Metrics for Graph Drawing Aesthetics. Journal of Visual Languages & Computing, 13(5):501–516, October 2002. doi: 10.1006/jvlc.2002.0232. URL https://www.sciencedirect.com/science/article/pii/S1045926X02902326.DOI
  62. [62]H. Edelsbrunner, D. Kirkpatrick, and R. Seidel. On the shape of a set of points in the plane. IEEE Transactions on Information Theory, 29(4):551–559, July 1983. doi: 10.1109/TIT.1983.1056714. URL https://ieeexplore.ieee.org/document/1056714/.DOI
  63. [63]Aric A. Hagberg, Daniel A. Schult, and Pieter J. Swart. Exploring Network Structure, Dynamics, and Function using NetworkX. pages 11–15, Pasadena, California, June 2008. doi: 10.25080/TCWV9851. URL https://doi.curvenote.com/10.25080/TCWV9851.DOI
  64. [64]Tom AB Snijders. Markov chain Monte Carlo estimation of exponential random graph models. Journal of Social Structure, 3(2):1–40, 2002. URL http://hbanaszak.mjr.uw.edu.pl/TempTxt/Mcpstar.pdf.
  65. [65]Tobias Winkler. boltzmann-planar-graph: Python implementation of uniform random planar graph sampler, 2020. URL https://github.com/towink/boltzmann-planar-graph. Accessed: 2026-01-21.

Paper details

vlnc:W_uhyt8wm9
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents