# NOT RUN {
#Create concept map from a random graph
require("igraph")
g1 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
write.tgf(conceptmap(g1), "~/cmap.tgf",
translation = c("Node_1", "Node_2", "Node_3", "Node_4", "Node_5"))
# }
Run the code above in your browser using DataLab