GraphGists

The Datasource!

Get borders for a country

MATCH (n {name:"France"})-[b:BORDER_WITH]-(m)
RETURN m.name,b.size

Get borders with a size greater or equal to 1000 km

MATCH (n)-[b:BORDER_WITH]->(m)
WHERE b.size >= 1000
RETURN n.name,m.name,b.size

Get Shortest Path(s) from one country to another

MATCH p = allShortestPaths(
(n {name:"Canada"})-[:BORDER_WITH]-(m {name:"Mongolie"}))
RETURN EXTRACT(n in nodes(p) | n.name),length(p)