Skip to content

Commit 4c0d1d2

Browse files
author
Petra Selmer
committed
Added more meaningful titles to existing examples
1 parent 972ceaf commit 4c0d1d2

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

cip/1.accepted/CIP2017-06-18-multiple-graphs.adoc

+11-6
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Proposed syntax changes
349349

350350
== Examples
351351

352-
Example 1
352+
=== A template for a multiple graph pipeline
353353
[source, cypher]
354354
----
355355
// Query input signature: Records with fields 'a', 'b' and two graphs 'g1', 'g2'
@@ -367,15 +367,17 @@ INTO NEW GRAPH result AT 'graph://...'
367367
RETURN a, b GRAPHS result, g1, g2
368368
----
369369

370-
Example 2
370+
=== A template for pipelining and interleaving queries
371+
371372
[source, cypher]
372373
----
373374
WITH a, b GRAPHS g1, g2 ... // First query
374375
WITH GRAPHS g3, g4 ... // Second query over first query
375376
RETURN c, d GRAPHS g5 // Third query over second query over first query
376377
----
377378

378-
Example 3
379+
=== Creating and returning a new graph and columns: a simple example
380+
379381
[source, cypher]
380382
----
381383
FROM GRAPH persons AT 'graph://...'
@@ -389,7 +391,8 @@ FROM -
389391
RETURN c.name AS city, count(r) AS num_friends GRAPHS berlin, santiago
390392
----
391393

392-
Example 4
394+
=== Creating a new graph, switching contexts and returning a graph
395+
393396
[source, cypher]
394397
----
395398
// Set scope to whole social network ...
@@ -413,7 +416,8 @@ RETURN a.name, b.name, count(e) AS cnt
413416
GRAPHS recommendations
414417
----
415418

416-
Example 5
419+
=== Using a pipeline of temporary graphs to process and return a subgraph
420+
417421
[source, cypher]
418422
----
419423
// Set scope to the whole social network ...
@@ -442,7 +446,8 @@ INTO NEW GRAPH rollup {
442446
RETURN GRAPHS rollup
443447
----
444448

445-
Example 5
449+
=== A more complex pipeline: using and materializing multiple graphs
450+
446451
[source, cypher]
447452
----
448453
// Set scope to the whole social network ...

0 commit comments

Comments
 (0)