Description Usage Arguments Details Value See Also Examples
The function calculates the average degree of separation by repeated sampling of two nodes finding the shortest path between them.
1 | degree_of_separation(in_network, repeats = 100)
|
in_network |
The network used for analysis |
repeats |
Nummber of repeated sampling of two random node paths |
To find the average connectedness of any two random nodes in a network the function degree_of_separation is used. The search algorithm is repeated multiple times (by default 100 times, but customizable by the user) for randomly selected node pairs in the network. A vector is returned, where each element is the degree of separation for a single iteration. The return vector can then be used to generate the network-specific distribution of connectedness.
A vector with the pathlength of each sampling event.
See Also import_network
, find_path
1 2 3 4 5 6 | ## Not run:
network <- import_network("example_network_Cyt.txt")
DOS <- degree_of_separation(network, repeats=100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.