Description Usage Arguments Details Value Author(s) Examples
wrapper function of _MEGENA_planaritytest. imports from Boost graph library, and test planarity of a network
1 | planaritytest(N, rows, cols)
|
N |
must be an integer. number of nodes in the network. |
rows |
first column of edgelist. a vector of integers. |
cols |
second column of edgelist. a vector of integers. |
cbind(rows,cols) is equivalent to the two column edge list of the network. We assume that the network is undirected.
TRUE/FALSE is returned to indicate planarity. (TRUE -> network is planar).
Won-Min Song
1 2 | # test simplest case of planar network (a 3-clique).
planaritytest(as.integer(3),c(1,1,2),c(2,3,3))
|
Loading required package: doParallel
Loading required package: foreach
Loading required package: iterators
Loading required package: parallel
Loading required package: igraph
Attaching package: ‘igraph’
The following objects are masked from ‘package:stats’:
decompose, spectrum
The following object is masked from ‘package:base’:
union
[1] TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.