Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/networkx/networkx
/ expovariate
Method
expovariate
networkx/utils/misc.py:430–431 ·
view source on GitHub ↗
(self, scale)
Source
from the content-addressed store, hash-verified
428
429
# exponential as expovariate with 1/argument,
430
def
expovariate(self, scale):
431
return
self._rng.exponential(1 / scale)
432
433
# pareto as paretovariate with argument,
434
def
paretovariate(self, shape):
Callers
4
test_PythonRandomInterface_RandomState
Function · 0.95
test_PythonRandomInterface_Generator
Function · 0.95
geographical_threshold_graph
Function · 0.80
thresholded_random_geometric_graph
Function · 0.80
Calls
no outgoing calls
Tested by
2
test_PythonRandomInterface_RandomState
Function · 0.76
test_PythonRandomInterface_Generator
Function · 0.76