This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to run Neo4j GraphGists locally? | |
git clone https://github.com/neo4j-contrib/rabbithole | |
cd rabbithole | |
mvn clean test-compile | |
mvn exec:java& | |
sleep 20 | |
# GraphGists only run in your browser, so in your asciidoc-file use the attribute at the top :neo4j-version: local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// What is related, and how | |
MATCH (a)-[r]->(b) | |
WHERE labels(a) <> [] AND labels(b) <> [] | |
RETURN DISTINCT head(labels(a)) AS This, type(r) as To, head(labels(b)) AS That | |
LIMIT 20 | |
//show me NeoTech | |
match (n:Company {name:"Neo Technology"}) return n | |
//show me NeoTech (excl Partners) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
# Copyright 2017, Nigel Small | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |