powered by
delete_isolates(q)
g=igraph::graph.edgelist(cbind(a=c(1,2,3,4), b=c(3,1,1,4)),directed=TRUE) delete_isolates(g)
Run the code above in your browser using DataLab