---
title: "ClikaRT::graph::Match"
sidebar_label: "Match"
description: "One occurrence of a Pattern in a graph: the matched node per pattern node, in add_node order."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--struct">struct</span>

**Header:** `ClikaRT/graph/pattern.h`

One occurrence of a [`Pattern`](./Pattern.md) in a graph: the matched node per pattern node, in `add_node` order. An optional pattern node absent from this occurrence reads as `std::nullopt`; every other entry holds a node. The nodes are views ([node.h](./index.md#node-h)): they find their nodes again by name after an edit, and once the searched graph is gone they refuse as views whose graph is gone.

## Data members

### nodes {#nodes}

<div class="api-signature">

`std::vector<std::optional<`[`Node`](./Node.md)`>>` **`nodes`**

</div>

<div class="api-declared">

Declared in `ClikaRT/graph/pattern.h`, line 55

</div>
