surrNODES: surrNODES finds nodes which are surrounding the given node
Description
surrNODES finds nodes which are surrounding the given node
Usage
surrNODES(noi, graph, all = TRUE)
Arguments
noi
node of interest; the compound/ko ID not the vertex ID of the node in the graph
all
conditional to return all nodes regardless of direction
Value
vector of surrounding nodes if all is TRUE, if all is FALSE returns list of in and out nodes