ignore solutions
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -22,3 +22,5 @@ dist-ssr
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
|
solutions.md
|
||||||
|
|||||||
47
reponses.md
47
reponses.md
@@ -1,47 +0,0 @@
|
|||||||
```cypher
|
|
||||||
LOAD CSV FROM 'file:///artists.csv' AS row
|
|
||||||
MERGE (a:Artist { name: row[1], year: toInteger(row[2]) })
|
|
||||||
RETURN a.name, a.year
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
```cypher
|
|
||||||
LOAD CSV WITH HEADERS
|
|
||||||
FROM 'file:///individus.csv' AS row
|
|
||||||
FIELDTERMINATOR ';'
|
|
||||||
MERGE (i:Individu { id: toInteger(row['id']) })
|
|
||||||
SET i.prenom = row['prenom'],
|
|
||||||
i.age = toInteger(row['age']),
|
|
||||||
i.sexe = row['sexe'],
|
|
||||||
i.etudes = toInteger(row['etudes']),
|
|
||||||
i.richesse = toInteger(row['richesse']),
|
|
||||||
i.lecture = toFloat(row['lecture']),
|
|
||||||
i.musique = toFloat(row['musique']),
|
|
||||||
i.sport = toFloat(row['sport']);
|
|
||||||
```
|
|
||||||
|
|
||||||
```cypher
|
|
||||||
MATCH (i:Individu) RETURN i LIMIT 25;
|
|
||||||
```
|
|
||||||
|
|
||||||
```cypher
|
|
||||||
MATCH (i:Individu {id: 58 })
|
|
||||||
RETURN i;
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```cypher
|
|
||||||
MATCH (i:Individu)
|
|
||||||
DETACH DELETE i;
|
|
||||||
```
|
|
||||||
|
|
||||||
MATCH path = (a:Individu {id:24})-[:AMI*1..3]->(b:Individu)
|
|
||||||
RETURN path;
|
|
||||||
|
|
||||||
MATCH (a:Individu {id: 22}), (b:Individu {id: 100}),
|
|
||||||
path = shortestPath((a)-[:AMI*..15]-(b))
|
|
||||||
RETURN path;
|
|
||||||
|
|
||||||
MATCH (a:Point {nom:'Boulangerie'}), (b:Point {nom:'Salle des fêtes'})
|
|
||||||
RETURN point.distance(a.location, b.location)
|
|
||||||
Reference in New Issue
Block a user