Skip to content
Browse files
Add Introduction for VLE Section
Added a brief introduction section for how variable length
edges function.
  • Loading branch information
JoshInnis committed Feb 10, 2022
1 parent ab9b1ab commit 3d322de02bf421c1c8764c3052e0b2b618a3a239
Showing 1 changed file with 55 additions and 1 deletion.
@@ -376,10 +376,64 @@ Returns the movie 'Charlie Sheen' acted in and its director.

### Variable Length Edges
## Variable Length Edges

When the connection between two vertices is of variable length, the list of edges that form the connection can be returned using the following connection.

### Introduction

Rather than describing a long path using a sequence of many vertex and edge descriptions in a pattern, many edges (and the intermediate vertices) can be described by specifying a length in the edge description of a pattern.


Which describes a right directed path of three vertices and two edges can be rewritten to:


A range lengths can also be given:


Which is equivalent to:

(u)-[]->()-[]->()-[]->(v) and
(u)-[]->()-[]->()-[]->()-[]->(v) and

The previous example provided gave the edge both an lower and upper bound for the number of edges (and vertices) between u and v. Either one or both of these binding values can be excluded


Returns all paths between u and v that have three or more edges included.


Returns all paths between u and v that have 5 or fewer edges included.


Returns all paths between u and v

### Example


0 comments on commit 3d322de

Please sign in to comment.