View source: R/random_graphs.R
sample_bipartite_signed | R Documentation |
Bipartite random signed graphs
sample_bipartite_signed(
n1,
n2,
p,
p_neg,
directed = FALSE,
mode = c("out", "in", "all")
)
n1 |
Integer scalar, the number of bottom vertices. |
n2 |
Integer scalar, the number of top vertices. |
p |
The probability for drawing an edge between two arbitrary vertices. |
p_neg |
The probability of a drawn edge to be a negative tie |
directed |
logical, whether the graph will be directed. defaults to FALSE. |
mode |
Character scalar, specifies how to direct the edges in directed graphs. If it is ‘out’, then directed edges point from bottom vertices to top vertices. If it is ‘in’, edges point from top vertices to bottom vertices. ‘out’ and ‘in’ do not generate mutual edges. If this argument is ‘all’, then each edge direction is considered independently and mutual edges might be generated. This argument is ignored for undirected graphs. |
A signed bipartite igraph graph.
sample_bipartite_signed(10, 10, 0.5, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.