removeAllNodesOfLabel: Delete all nodes of the same label

View source: R/Removal_Functions.R

removeAllNodesOfLabelR Documentation

Delete all nodes of the same label

Description

Delete all the nodes of the same label.

Usage

removeAllNodesOfLabel(connection, label)

Arguments

connection

The Neo4j connection object.

label

The nodes label to be deleted.

Value

The result from the Neo4j call.

Examples

## Not run: 
#To delete all labels
for(label in wntmully$layers$Name){
 removeAllNodesOfLabel(connection,label)
}

#To delete drugs nodes
removeAllNodesOfLabel(connection,"drugs")

## End(Not run)

frankkramer-lab/Multipath2Neo4j documentation built on July 20, 2023, 11:43 p.m.