Instantly share code, notes, and snippets.

Embed
What would you like to do?
create neo4j sample data
MERGE (station:Station {name: '海岸1'});
MERGE (station:Station {name: '海岸2'});
MERGE (station:Station {name: '海岸3'});
MERGE (station:Station {name: '山b'});
MERGE (station:Station {name: '山c'});
MERGE (station:Station {name: '山d'});
MERGE (station:Station {name: '町C'});
MERGE (station:Station {name: '海岸1'});
MERGE (station:Station {name: '町A'});
MERGE (station:Station {name: '町B'});
MERGE (station:Station {name: '町C'});
MERGE (station:Station {name: '町D'});
MERGE (station:Station {name: '町E'});
MERGE (station:Station {name: '山d'});
MERGE (station:Station {name: '大都会'});
MATCH (from:Station { name: '海岸1' })
MATCH (dest:Station { name: '海岸2' })
MERGE (from)-[:Section{minutes:3, kind:'各停'}]->(dest);
MATCH (from:Station { name: '海岸2' })
MATCH (dest:Station { name: '海岸1' })
MERGE (from)-[:Section{minutes:3, kind:'各停'}]->(dest);
MATCH (from:Station { name: '海岸2' })
MATCH (dest:Station { name: '海岸3' })
MERGE (from)-[:Section{minutes:5, kind:'各停'}]->(dest);
MATCH (from:Station { name: '海岸3' })
MATCH (dest:Station { name: '海岸2' })
MERGE (from)-[:Section{minutes:5, kind:'各停'}]->(dest);
MATCH (from:Station { name: '海岸3' })
MATCH (dest:Station { name: '山b' })
MERGE (from)-[:Section{minutes:3, kind:'各停'}]->(dest);
MATCH (from:Station { name: '山b' })
MATCH (dest:Station { name: '海岸3' })
MERGE (from)-[:Section{minutes:3, kind:'各停'}]->(dest);
MATCH (from:Station { name: '山b' })
MATCH (dest:Station { name: '山c' })
MERGE (from)-[:Section{minutes:5, kind:'各停'}]->(dest);
MATCH (from:Station { name: '山c' })
MATCH (dest:Station { name: '山b' })
MERGE (from)-[:Section{minutes:5, kind:'各停'}]->(dest);
MATCH (from:Station { name: '山c' })
MATCH (dest:Station { name: '山d' })
MERGE (from)-[:Section{minutes:4, kind:'各停'}]->(dest);
MATCH (from:Station { name: '山d' })
MATCH (dest:Station { name: '山c' })
MERGE (from)-[:Section{minutes:4, kind:'各停'}]->(dest);
MATCH (from:Station { name: '山d' })
MATCH (dest:Station { name: '町C' })
MERGE (from)-[:Section{minutes:5, kind:'各停'}]->(dest);
MATCH (from:Station { name: '町C' })
MATCH (dest:Station { name: '山d' })
MERGE (from)-[:Section{minutes:5, kind:'各停'}]->(dest);
MATCH (from:Station { name: '海岸1' })
MATCH (dest:Station { name: '町A' })
MERGE (from)-[:Section{minutes:5, kind:'各停'}]->(dest);
MATCH (from:Station { name: '町A' })
MATCH (dest:Station { name: '海岸1' })
MERGE (from)-[:Section{minutes:5, kind:'各停'}]->(dest);
MATCH (from:Station { name: '町A' })
MATCH (dest:Station { name: '町B' })
MERGE (from)-[:Section{minutes:7, kind:'各停'}]->(dest);
MATCH (from:Station { name: '町B' })
MATCH (dest:Station { name: '町A' })
MERGE (from)-[:Section{minutes:7, kind:'各停'}]->(dest);
MATCH (from:Station { name: '町B' })
MATCH (dest:Station { name: '町C' })
MERGE (from)-[:Section{minutes:4, kind:'各停'}]->(dest);
MATCH (from:Station { name: '町C' })
MATCH (dest:Station { name: '町B' })
MERGE (from)-[:Section{minutes:4, kind:'各停'}]->(dest);
MATCH (from:Station { name: '町C' })
MATCH (dest:Station { name: '町D' })
MERGE (from)-[:Section{minutes:3, kind:'各停'}]->(dest);
MATCH (from:Station { name: '町D' })
MATCH (dest:Station { name: '町C' })
MERGE (from)-[:Section{minutes:3, kind:'各停'}]->(dest);
MATCH (from:Station { name: '町D' })
MATCH (dest:Station { name: '町E' })
MERGE (from)-[:Section{minutes:8, kind:'各停'}]->(dest);
MATCH (from:Station { name: '町E' })
MATCH (dest:Station { name: '町D' })
MERGE (from)-[:Section{minutes:8, kind:'各停'}]->(dest);
MATCH (from:Station { name: '山d' })
MATCH (dest:Station { name: '大都会' })
MERGE (from)-[:Section{minutes:13, kind:'各停'}]->(dest);
MATCH (from:Station { name: '大都会' })
MATCH (dest:Station { name: '山d' })
MERGE (from)-[:Section{minutes:13, kind:'各停'}]->(dest);
MATCH (from:Station { name: '海岸1' })
MATCH (dest:Station { name: '海岸3' })
MERGE (from)-[:Section{minutes:4, kind:'急行'}]->(dest);
MATCH (from:Station { name: '海岸3' })
MATCH (dest:Station { name: '海岸1' })
MERGE (from)-[:Section{minutes:4, kind:'急行'}]->(dest);
MATCH (from:Station { name: '海岸3' })
MATCH (dest:Station { name: '山d' })
MERGE (from)-[:Section{minutes:6, kind:'急行'}]->(dest);
MATCH (from:Station { name: '山d' })
MATCH (dest:Station { name: '海岸3' })
MERGE (from)-[:Section{minutes:6, kind:'急行'}]->(dest);
MATCH (from:Station { name: '海岸1' })
MATCH (dest:Station { name: '町C' })
MERGE (from)-[:Section{minutes:10, kind:'急行'}]->(dest);
MATCH (from:Station { name: '町C' })
MATCH (dest:Station { name: '海岸1' })
MERGE (from)-[:Section{minutes:10, kind:'急行'}]->(dest);
MATCH (from:Station { name: '町C' })
MATCH (dest:Station { name: '町E' })
MERGE (from)-[:Section{minutes:6, kind:'急行'}]->(dest);
MATCH (from:Station { name: '町E' })
MATCH (dest:Station { name: '町C' })
MERGE (from)-[:Section{minutes:6, kind:'急行'}]->(dest);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment