Description Usage Arguments Value Author(s)
A function to fit the 3 parameter (number of vertices, community assignment for each vertex, and matrix community interactions) Stochastic Block Model to a weighted or unweighted graph. The community interactions for pairs of unique communities is either a probability matrix (unweighted graph) or an edge-expectation matrix (weighted graph).
1 | gs.sbm.fit(g, communities, edge.attr = NULL, output.type = "matrix")
|
g |
an |
communities |
an |
edge.attr |
if
|
output.type |
the type of output to produce for the between community expectations. Defaults to
|
An object of class SBM
containing the following:
n.v
the number of vertices in the graph.
v.communities
the community each vertex is assigned to.
P
a representation of the between-community edge probabilities (unweighted) or expectations (weighted).
Eric Bridgeford
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.