Papers
Topics
Authors
Recent
Search
2000 character limit reached

Trope-based Graphs in Interactive Narratives

Updated 1 July 2026
  • Trope-based graphs are formal structures that encode narrative tropes as labeled nodes and relationships as labeled edges for clear story representation.
  • They utilize context-free graph grammars and evolutionary algorithms, such as Constrained MAP-Elites, to systematically generate and diversify narrative architectures.
  • Applications include automated narrative generation and rigorous structural analysis in games and interactive media to enhance storytelling quality.

Trope-based graphs are formal structures designed to abstract, encode, and generate narrative architectures in interactive media, particularly games, by representing recurring narrative elements—tropes—as labeled nodes and their interrelations as labeled edges. Systems such as TropeTwist mechanize this approach, utilizing context-free graph grammars and evolutionary algorithms to systematically generate, evaluate, and diversify narrative blueprints built from interconnected tropes, thereby facilitating both analytic and generative treatments of story structures (Alvarez et al., 2022).

1. Formal Semantics of Trope-Based Narrative Graphs

A trope-based narrative graph is defined as a directed, labeled graph with specialized edge semantics for representing narrative relations. The formal tuple (V,E,â„“V,â„“E)(V,E,\ell_V,\ell_E) comprises:

  • VV: a finite set of nodes, each labeled by the mapping â„“V:V→T\ell_V: V \to \mathcal{T}, where T\mathcal{T} is a finite set of tropes derived from resources such as TVTropes (e.g., HERO, MCG, NEO).
  • E⊆V×VE\subseteq V\times V: a set of labeled edges, with the edge labeling â„“E:E→{→,↔,♢—}\ell_E: E \to \{\to, \leftrightarrow, \diamondsuit\text{---}\}. Here, →\to models unidirectional narrative causality, ↔\leftrightarrow models bidirectional or reflexive narrative links, and ♢—\diamondsuit\text{---} encodes entailment (causal/hierarchical dependencies).

For interpretive clarity, a motif such as: HERO  →  MCG  ♢—  NEO\text{HERO} \;\to\; \text{MCG} \;\diamondsuit\text{---}\; \text{NEO} denotes "the hero pursues a MacGuffin, which in turn entails the rise of the Chosen One" (Alvarez et al., 2022).

2. Graph-Grammar Foundation and Encoding

Trope-based narrative graphs are generated indirectly by means of a context-free graph grammar, formally expressed as a quadruple VV0:

  • VV1: nonterminal symbols representing abstract subgraph configurations—effectively, narrative "slots" or unconcretized patterns.
  • VV2: terminal symbols, exactly comprising the trope set VV3.
  • VV4: a finite set of (hyper)graph production rules VV5, where both VV6 and VV7 are labeled subgraphs over VV8. Production rules specify local subgraph rewritings according to the standard hypergraph rewriting paradigm.
  • VV9: the designated start symbol, corresponding to a proof-of-concept or root narrative graph.

Each grammar instance encodes possible expansions of abstract narrative structures into concrete graphs by sequentially applying production rules to matching subgraphs, gluing in new tropes or relations at the "open slots" defined by nonterminals (Alvarez et al., 2022).

3. Evolutionary Generation with MAP-Elites

TropeTwist employs the Constrained MAP-Elites framework to evolve populations of graph grammars, sampling and archiving narrative graphs with specified behavioral diversity and quality characteristics. Central operational details include:

  • Chromosome Representation: Each evolutionary individual is a variable-length list of production rules â„“V:V→T\ell_V: V \to \mathcal{T}0.
  • Genotype-to-Phenotype Mapping: For each individual, a random "recipe"—a list of rule indices—is sampled and applied sequentially, constructing a unique narrative graph.
  • Variation Operators: Crossover exchanges either the â„“V:V→T\ell_V: V \to \mathcal{T}1 or â„“V:V→T\ell_V: V \to \mathcal{T}2 subgraph in a selected production rule; mutation can (with 10% probability) add or remove an entire rule, or (90%) locally rewire a subgraph's structure via node/edge insertion or deletion.
  • Feasibility Constraints:
  1. Narrative graphs must be weakly connected.
  2. No Conflict Pattern may exhibit more than a single self-conflict. Infeasible individuals are tracked in a specialized MAP-Elites population, with fitness scores based on the degree of infeasibility (e.g., the number of disconnected components).

Two principal behavioral axes underpin MAP-Elites:

  1. Step Distance from a root graph ℓV:V→T\ell_V: V \to \mathcal{T}3, measured by a Levenshtein-type edit distance on the node–edge sequences, with a cap ℓV:V→T\ell_V: V \to \mathcal{T}4 to limit divergence.
  2. Interestingness, a weighted composite of meso-pattern metrics (Active Plot Devices, Plot Points, Plot Twists) described below (Alvarez et al., 2022).

4. Narrative Graph Evaluation Metrics

Trope-based graphs are evaluated for coherence and interestingness using a suite of graph-structural and alignment metrics:

  • Coherence â„“V:V→T\ell_V: V \to \mathcal{T}5 incorporates:
    • Consistency â„“V:V→T\ell_V: V \to \mathcal{T}6: Quantifies alignment of micro-patterns (e.g., trope frequencies, conflict motifs) with a designated root graph, with penalty terms for "fake" conflict motifs.
    • Cohesion â„“V:V→T\ell_V: V \to \mathcal{T}7: Penalizes auxiliary or dangling narrative structures by measuring the proportion of incomplete or broken connections.

Formally: ℓV:V→T\ell_V: V \to \mathcal{T}8

ℓV:V→T\ell_V: V \to \mathcal{T}9

  • Interestingness T\mathcal{T}0 aggregates three meso-pattern attributes—Active Plot Devices (T\mathcal{T}1), Plot Points (T\mathcal{T}2), and Plot Twists (T\mathcal{T}3)—with a weighted sum: T\mathcal{T}4 where weights are T\mathcal{T}5.

Micro-metrics such as repetition quality (T\mathcal{T}6, penalizing trope overuse) and involvement quality (T\mathcal{T}7, gauging participation in higher-order structures) contribute to these meso-scores, supporting fine-grained narrative pattern matching and diversity evaluation (Alvarez et al., 2022).

5. Exemplification: Root and Elite Narrative Graphs

Concrete instantiation within TropeTwist employs hand-crafted "root" narrative graphs based on existing works, against which evolved graphs are evaluated for divergence and coherence.

  • Example Root Graph (T\mathcal{T}8): For "The Legend of Zelda: Ocarina of Time"

T\mathcal{T}9

E⊆V×VE\subseteq V\times V0

  • Example Elite Graph (E⊆V×VE\subseteq V\times V1): An evolved variant may use

E⊆V×VE\subseteq V\times V2

E⊆V×VE\subseteq V\times V3

where bidirectional and entailment edges introduce new narrative reveals.

Adjacency matrices for these graphs express the edge structure explicitly, supporting algorithmic comparison and edit-distance computation.

6. Applications and Implications

Trope-based narrative graphs support systematic investigation and generative experimentation with narrative architectures in games and interactive media. By formulating narrative objects as labeled graphs governed by hypergraph grammars, and leveraging Constrained MAP-Elites for evolutionary search, designers and researchers gain access to a structured archive of quality-diverse, high-coherence narrative blueprints. A plausible implication is that this framework could facilitate both automated content generation and rigorous structural analysis in computational narratology, with extensibility to other media where narrative tropes are salient (Alvarez et al., 2022).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Trope-based Graphs.