powered by
is.adjacent
TRUE
vi
vj
x
na.omit
is.adjacent(x, vi, vj, na.omit = TRUE)
network
get.neighborhood
#Create a very simple graph g<-network.initialize(3) g<-add.edge(g,1,2) is.adjacent(g,1,2) #TRUE is.adjacent(g,2,1) #FALSE
Run the code above in your browser using DataLab