Skip to content

Instantly share code, notes, and snippets.

@cheerfulstoic
Last active April 8, 2016 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cheerfulstoic/b905e1b8cb531a8c5620 to your computer and use it in GitHub Desktop.
Save cheerfulstoic/b905e1b8cb531a8c5620 to your computer and use it in GitHub Desktop.
Test GraphGist

GraphGist acid test

GraphGist created to test the various features available to GraphGist rendering

5giAsjq

ASCIIdoc formatting

Level 1 Header

Level 2 Header

Level 3 Header

italic

bold

Monospace

CREATE
  (a:Person {name: 'Alice'}),
  (b:Person {name: 'Bob'}),
  (c:Person {name: 'Carrie'}),
  (d:Person {name: 'David'}),
  (e:Person {name: 'Emily'}),
  (a)-[:FRIENDS_WITH]->(b),
  (a)-[:FRIENDS_WITH]->(e),
  (b)-[:FRIENDS_WITH]->(c),
  (b)-[:FRIENDS_WITH]->(d),
  (:Colorized {name: 'Colorized'})

Break

MATCH (b:Person {name: 'Bob'})-[:FRIENDS_WITH]->(d:Person {name: 'David'}) RETURN b, d

Header

Graph result:

Full graph:

Break

MATCH (a:Person) RETURN count(a)

Number of people:

RETURN 'table after header' AS text

Header

Table directly after a header:

MATCH (a:Person {name: 'Alice'})-[:FRIENDS_WITH]->(b:Person {name: 'Bob'}) RETURN * LIMIT 1

Header

Graph directly after a header:

Colorization

MATCH (c:Colorized {name: 'Colorized'}) RETURN *

Should be colorized:

MathJax

There should be MathJax here:

\[p(u_i \mid q) = \sum p(u_i \mid t)p(t \mid q) \]

Error reporting

This should always be the last result because errors stop execution of queries

MATCH (n:MissingParen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment