| hrg | R Documentation | 
hrg() creates a HRG from an igraph graph. The igraph graph must be
a directed binary tree, with n-1 internal and n leaf
vertices. The prob argument contains the HRG probability labels
for each vertex; these are ignored for leaf vertices.
hrg(graph, prob)
| graph | The igraph graph to create the HRG from. | 
| prob | A vector of probabilities, one for each vertex, in the order of vertex ids. | 
hrg() returns an igraphHRG object.
Other hierarchical random graph functions: 
consensus_tree(),
fit_hrg(),
hrg-methods,
hrg_tree(),
predict_edges(),
print.igraphHRG(),
print.igraphHRGConsensus(),
sample_hrg()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.