Cypher head and tail
✓ Published0🌍 Public
CCliffordAnderson
Last edited Aug 28, 2014
Created on Aug 28, 2014
The example visualizes the tail of a Cypher shortest path query, showing only the nodes and relationships that follow the final match in the path. It uses the Neo4j Cypher query language to match two named nodes, "Martha" and "Ted," compute the shortest path between them with `shortestPath`, and then return only the `tail(n)`—the nodes after the first—via the `tail` function. The rendering likely relies on a graph visualization library such as d3.forceSimulation to position nodes, while the query itself filters the displayed subset. The data source is a gist by CliffordAnderson, and the visualization emphasizes the truncated result set rather than the full path.
AI-generated description