You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#> Generating random mixing matrix `B` with independent Uniform(0, 1) entries. This distribution may change in the future. Explicitly set `B` for reproducible results.
68
68
```
69
69
70
-
You can specify the latent factors and the mixing matrix $B$ yourself,
71
-
but there are also defaults to enable fast prototyping. Here $B$ was
70
+
You can specify the latent factors and the mixing matrix $`B`$ yourself,
71
+
but there are also defaults to enable fast prototyping. Here $`B`$ was
72
72
randomly generated with `Uniform[0, 1]` entries and nodes were assigned
73
73
randomly to communities with equal probability of falling in all
74
74
communities. Printing the result object gives us some additional
@@ -106,20 +106,20 @@ obtain an edgelist in a `tibble` with:
106
106
107
107
```r
108
108
sample_edgelist(sbm)
109
-
#> # A tibble: 4,985 × 2
109
+
#> # A tibble: 2,484 × 2
110
110
#> from to
111
111
#> <int> <int>
112
-
#> 1 111 127
113
-
#> 2 86109
114
-
#> 3 4397
115
-
#> 4 6194
116
-
#> 5 22143
117
-
#> 6 4 89
118
-
#> 7 30159
119
-
#> 8 119 210
120
-
#> 9 41197
121
-
#> 10 145 175
122
-
#> # ℹ 4,975 more rows
112
+
#> 1 4 155
113
+
#> 2 46141
114
+
#> 3 4256
115
+
#> 4 4255
116
+
#> 5 72167
117
+
#> 6 32 68
118
+
#> 7 67 75
119
+
#> 8 10 164
120
+
#> 9 30154
121
+
#> 10 74 182
122
+
#> # ℹ 2,474 more rows
123
123
```
124
124
125
125
but we can just as easily obtain the graph as a sparse matrix
0 commit comments