1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! [`Edge`] — a graph relationship connecting two nodes.
use ;
use ;
/// A directed or undirected relationship between two nodes.
///
/// Edges carry a single string `label` (e.g. `"KNOWS"`, `"WORKS_AT"`), link
/// a `from_node` to a `to_node`, and hold an arbitrary key-value
/// [`Properties`] map.
///
/// When `directed = false` the edge is indexed in both adjacency directions so
/// that undirected MATCH patterns (using `--`) find it from either endpoint.