# NOT RUN {
g = graph(0, 100)
g = addNodes(g, n = 25, generator = addNodesGrid)
g = addEdges(g, generator = addEdgesDelauney)
g = addWeights(g, generator = addWeightsDistance, method = "manhattan")
# }
# NOT RUN {
pls = plot(g, weight.plot.type = "ecdf")
# }
# NOT RUN {
g = addWeights(g, generator = addWeightsRandom,
method = rpois, lambda = 0.1)
# }
# NOT RUN {
pls = plot(g, show.edges = FALSE)
# }
# NOT RUN {
g = graph(0, 100)
g = addNodes(g, n = 25, generator = addNodesGrid)
g = addNodes(g, n = 9, by.centers = TRUE, generator = addNodesGrid,
lower = c(0, 0), upper = c(7, 7))
g = addEdges(g, generator = addEdgesDelauney)
g = addWeights(g, generator = addWeightsCorrelated, rho = -0.8)
# }
# NOT RUN {
do.call(gridExtra::grid.arrange, plot(g, show.edges = FALSE))
do.call(gridExtra::grid.arrange, plot(g, show.edges = TRUE,
show.cluster.centers = FALSE))
# }
Run the code above in your browser using DataLab