nties | R Documentation |
nties
returns the number of possible edges in each element of dat
, given mode
and diag
.
nties(dat, mode="digraph", diag=FALSE)
dat |
a graph or set thereof. |
mode |
one of “digraph”, “graph”, and “hgraph”. |
diag |
a boolean indicating whether or not diagonal entries (loops) should be treated as valid data; ignored for hypergraphic (“hgraph”) data. |
nties
is used primarily to automate maximum edge counts for use with normalization routines.
The number of possible edges, or a vector of the same
For two-mode (hypergraphic) data, the value returned isn't technically the number of edges per se, but rather the number of edge memberships.
Carter T. Butts buttsc@uci.edu
#How many possible edges in a loopless digraph of order 15?
nties(rgraph(15),diag=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.