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

A relationship from a node in a pattern to the next one, such as -[:EATS]->, or -[:EATS*2]->, which is two of them in a row. More...

#include <parser.h>

Public Attributes

std::vector< std::string > types
 Its types: a relationship of any of them matches.
 
int hops = 1
 
Direction direction = Direction::kOut
 Which way to follow it from the node before it: out, in when it's written with its arrow on the left, or both with no arrow.
 
std::string weight
 The property a cheapest path adds up, as in -[:KNOWS* WSHORTEST(weight)]-, which is how Kùzu writes it.
 

Detailed Description

A relationship from a node in a pattern to the next one, such as -[:EATS]->, or -[:EATS*2]->, which is two of them in a row.

One written <-[:EATS]- goes the other way, from the next node to this one, and one written -[:EATS]-, with no arrow, goes either way.

Definition at line 30 of file parser.h.

Member Data Documentation

◆ direction

Direction smollergraph::RelationshipPattern::direction = Direction::kOut

Which way to follow it from the node before it: out, in when it's written with its arrow on the left, or both with no arrow.

Definition at line 36 of file parser.h.

◆ hops

int smollergraph::RelationshipPattern::hops = 1

Definition at line 33 of file parser.h.

◆ types

std::vector<std::string> smollergraph::RelationshipPattern::types

Its types: a relationship of any of them matches.

Definition at line 32 of file parser.h.

◆ weight

std::string smollergraph::RelationshipPattern::weight

The property a cheapest path adds up, as in -[:KNOWS* WSHORTEST(weight)]-, which is how Kùzu writes it.

Definition at line 39 of file parser.h.


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