File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/SimpleGraphs/generators Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -127,11 +127,16 @@ function randbn(
127
127
end
128
128
129
129
"""
130
- erdos_renyi(n, p)
130
+ erdos_renyi(n, p::Real )
131
131
132
132
Create an [Erdős–Rényi](http://en.wikipedia.org/wiki/Erdős–Rényi_model)
133
133
random graph with `n` vertices. Edges are added between pairs of vertices with
134
- probability `p`.
134
+ probability `p`.
135
+
136
+ Note that there exists another definition of the Erdös-Rényi model in which the
137
+ total number of edges is kept constant, rather than the probability `p`.
138
+ To access this definition, use `erdos_renyi(n, ne::Integer)`
139
+ (specifically: `erdos_renyi(n, 1) != erdos_renyi(n, 1.0)`).
135
140
136
141
### Optional Arguments
137
142
- `is_directed=false`: if true, return a directed graph.
@@ -170,7 +175,7 @@ function erdos_renyi(
170
175
end
171
176
172
177
"""
173
- erdos_renyi(n, ne)
178
+ erdos_renyi(n, ne::Integer )
174
179
175
180
Create an [Erdős–Rényi](http://en.wikipedia.org/wiki/Erdős–Rényi_model) random
176
181
graph with `n` vertices and `ne` edges.
You can’t perform that action at this time.
0 commit comments