---
title: "ClikaRT::graph::WeightedPath"
sidebar_label: "WeightedPath"
description: "A path with the edges it takes and its summed cost: edges[i] joins nodes[i] to nodes[i + 1], naming the parallel edge taken. Empty, at cost 0, when no path runs."
---

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

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

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

A path with the edges it takes and its summed cost: [`edges`](./WeightedPath.md#edges)`[i]` joins [`nodes`](./WeightedPath.md#nodes)`[i]` to [`nodes`](./WeightedPath.md#nodes)`[i + 1]`, naming the parallel edge taken. Empty, at cost 0, when no path runs.

## Data members

### nodes {#nodes}

<div class="api-signature">

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

</div>

<div class="api-declared">

Declared in `ClikaRT/graph/query.h`, line 136

</div>

### edges {#edges}

<div class="api-signature">

`std::vector<`[`Edge`](./Edge.md)`>` **`edges`**

</div>

<div class="api-declared">

Declared in `ClikaRT/graph/query.h`, line 137

</div>

### cost {#cost}

<div class="api-signature">

`double` **`cost`** `= 0.0`

</div>

<div class="api-declared">

Declared in `ClikaRT/graph/query.h`, line 138

</div>
