nActors <- 4
network <- create_network(matrix(0, nActors, nActors))
# set ties
set_tie(network, i = 0, j = 1, value = 1)
set_tie(network, i = 0, j = 2, value = 1)
## Not run: library(igraph)
## Not run: myIGraph <- as.igraph(network, mode = "directed")
## Not run: plot(myIgraph) # now using the igraph package
Run the code above in your browser using DataLab