ergm.geodistdist calculates geodesic distance distribution for a
network and returns it as a vector.
ergm.geodistn calculates geodesic deistance
distribution based on an input edgelist, and has very little
error checking so should not normally be called by users. The C
code requires the edgelist to be directed and sorted correctly.
ergm.geodistdist(nw, directed = is.directed(nw))
ergm.geodistn(edgelist, n = max(edgelist), directed = FALSE)
logical, should the network be treated as directed
an edgelist representation of a network as an mx2 matrix
integer, size of the network
ergm.geodistdist is a network wrapper for
calculates and returns the geodesic distance distribution for a given
network via full_geodesic_distribution.C
ans with length equal to the size of the network
ans[i], i=1, ..., n-1 is the number of pairs of
ans[n] is the number of pairs of geodesic length
See also the sna package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.