see
http://kateto.net/networks-r-igraph
igraph tutorial
Examples for the igraph package

nodes (vertex)
edges (lines)

social network

adjency matrix

edge list - economical way to store data

library(igraph)
# df = data frame data
g <- graph.edgelist(as.matrix(df), directed = FALSE)