In R, there a straightforward way to convert an edge list to an adjacency matrix (and vice versa)?
I created some data:
library(igraph) library(mstknn