如何删除节点和所有相关节点不仅关系例如
account-[:GGroup]-group,
group-[:GEvent]-event,
group-[:GMember]-member,
group-[:GAlbum]-album,
album-[:GPhoto]-photo,
所以我想删除所有相关节点(事件和专辑(和照片))的组,这是我的工作......我正在使用java。
START group = node:GGroup('dbId:1')
MATCH group-[gp:privacy]-gPrivacy,
group-[gm:GroupMember]-(),
group-[ge:GroupEvent]-event,
event-[ep:privacy]-gePrivacy,
event-[eep:EventParticipant]-(),
event-[ea:EventAlbum]-eventAlbum,
eventAlbum-[ap:privacy]-geaPrivacy,
eventAlbum-[aph:AlbumPhoto]-eventAlbumPhoto,
eventAlbumPhoto-[ept:PhotoTag]-eventAlbumPhotoTag,
event-[ev:EventVideo]-eventVideo,
eventVideo-[vp:privacy]-gevPrivacy,
group-[ga:GroupAlbum]-groupAlbum,
groupAlbum-[gap:privacy]-gaPrivacy,
groupAlbum-[aphoto:AlbumPhoto]-groupAlbumPhoto,
groupAlbumPhoto-[gpt:PhotoTag]-groupAlbumPhotoTag,
group-[gf:GroupFile]-groupFile
delete group,gm,ge,event,ep,gePrivacy,eep,ea,eventAlbum,ap,geaPrivacy
,aph,eventAlbumPhoto,ept,eventAlbumPhotoTag,ev,eventVideo,vp,gevPrivacy,ga,
groupAlbum,gap,gaPrivacy,aphoto,groupAlbumPhoto,gpt,groupAlbumPhotoTag,gf,
groupFile,gp