删除所有节点的操作
MATCH (n)
OPTIONAL MATCH (n)-[r]-()
DELETE n,r
CREATE (A1:Entities {title:'密封圈'})
CREATE (A2:Entities {title:'轴承'})
CREATE (A3:Entities {title:'垫片'})
CREATE (A4:Entities {title:'前盖'})
CREATE (A5:Entities {title:'电刷'})
CREATE (A6:Entities {title:'换向器线圈连接板'})
CREATE (A7:Entities {title:'换向器'})
CREATE (A8:Entities {title:'线圈'})
CREATE (A9:Entities {title:'主轴'})
CREATE (A10:Entities {title:'电磁回程'})
CREATE (A11:Entities {title:'轴承'})
CREATE (A12:Entities {title:'密封圈'})
CREATE (A13:Parts {title:'空心杯电机'})
CREATE
(A13)-[:hasPart]->(A1),
(A13)-[:hasPart]->(A2),
(A13)-[:hasPart]->(A3),
(A13)-[:hasPart]->(A4),
(A13)-[:hasPart]->(A5),
(A13)-[:hasPart]->(A6),
(A13)-[:hasPart]->(A7),
(A13)-[:hasPart]->(A8),
(A13)-[:hasPart]->(A9),
(A13)-[:hasPart]->(A10),
(A13)-[:hasPart]->(A11),
(A13)-[:hasPart]->(A12),
(A1)-[:partOf]->(A13),
(A2)-[:partOf]->(A13),
(A3)-[:partOf]->(A13),
(A4)-[:partOf]->(A13),
(A5)-[:partOf]->(A13),
(A6)-[:partOf]->(A13),
(A7)-[:partOf]->(A13),
(A8)-[:partOf]->(A13),
(A9)-[:partOf]->(A13),
(A10)-[:partOf]->(A13),
(A11)-[:partOf]->(A13),
(A12)-[:partOf]->(A13),
(A9)-[:NextSequence ]->(A10)-[:NextSequence ]->(A8)-[:NextSequence ]->(A7)-[:NextSequence ]->(A6)-[:NextSequence ]->(A5)-[:NextSequence ]->(A4)-[:NextSequence ]->(A3)-[:NextSequence ]->(A2)-[:NextSequence ]->(A1)-[:NextSequence ]->(A11)-[:NextSequence ]->(A12),
(A12)-[:PreSequence ]->(A11)-[:PreSequence ]->(A1)-[:PreSequence ]->(A2)-[:PreSequence ]->(A3)-[:PreSequence ]->(A4)-[:PreSequence ]->(A5)-[:PreSequence ]->(A6)-[:PreSequence ]->(A7)-[:PreSequence ]->(A8)-[:PreSequence ]->(A10)-[:PreSequence ]->(A9)