powered by
wrapper function of _MEGENA_planaritytest. imports from Boost graph library, and test planarity of a network
planaritytest(N, rows, cols)
must be an integer. number of nodes in the network.
first column of edgelist. a vector of integers.
second column of edgelist. a vector of integers.
TRUE/FALSE is returned to indicate planarity. (TRUE -> network is planar).
cbind(rows,cols) is equivalent to the two column edge list of the network. We assume that the network is undirected.
# NOT RUN { # test simplest case of planar network (a 3-clique). planaritytest(as.integer(3),c(1,1,2),c(2,3,3)) # }
Run the code above in your browser using DataLab