smollerGraph 0.20.2
A small graph database, from scratch
Loading...
Searching...
No Matches
smollergraph::Path Struct Reference

A path through the graph: its nodes, from its start to its end, and the relationships between them, one fewer. More...

#include <query.h>

Public Attributes

std::vector< NodeId > nodes
 
std::vector< RelationshipId > relationships
 
int64_t cost = 0
 

Detailed Description

A path through the graph: its nodes, from its start to its end, and the relationships between them, one fewer.

A cheapest path has its cost too, its relationships' weights added up.

Definition at line 28 of file query.h.

Member Data Documentation

◆ cost

int64_t smollergraph::Path::cost = 0

Definition at line 31 of file query.h.

◆ nodes

std::vector<NodeId> smollergraph::Path::nodes

Definition at line 29 of file query.h.

◆ relationships

std::vector<RelationshipId> smollergraph::Path::relationships

Definition at line 30 of file query.h.


The documentation for this struct was generated from the following file: