This file contains hidden or 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
function _nvm { | |
local DO_RUN=yes | |
unalias nvm | |
if [ "`type -t nvm`" != "function" ] ; then | |
NVM_DIR="${NVM_DIR:-${ORIG_NVM_DIR:-$HOME/.nvm}}" | |
ORIG_NVM_DIR="$NVM_DIR" | |
if [ ! -d "$NVM_DIR" ] ; then | |
mkdir "$NVM_DIR" | |
TMPPROFILE="${NVM_DIR}.tmp" | |
touch "$TMPPROFILE" |
This file contains hidden or 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 -*- | |
''' | |
Python 2/3 utility for interactively unraveling structure from a Neo4j graph database. | |
First adjust the DRIVER statement for the database you wish to explore. Then run python neoexplore.py. | |
The script will first scan the database for unique combinations of labels, and offer you queries to explore these. | |
E.g. >0 (A, B)*123 presents a query for exploring 123 nodes with both labels A and B by typing >0. | |
First the possible properties are listed, e.g. .[someprop]*67 means 67 out of 123 nodes have property someprop. | |
The square brackets emphasize the property does not always exist. | |
Second possible outgoing relations are listed, e.g. <>5 >10* [somereltype]*50 (C, D)*20 means 10 out of the 123 |