NetworkX
2.1
Install
Tutorial
Reference
Introduction
Graph types
Algorithms
Functions
Graph generators
Linear algebra
Converting to and from other data formats
Relabeling nodes
Reading and writing graphs
Drawing
Exceptions
Utilities
Helper Functions
Data Structures and Algorithms
Random Sequence Generators
networkx.utils.random_sequence.powerlaw_sequence
networkx.utils.random_sequence.cumulative_distribution
networkx.utils.random_sequence.discrete_sequence
networkx.utils.random_sequence.zipf_rv
networkx.utils.random_sequence.random_weighted_sample
networkx.utils.random_sequence.weighted_choice
Decorators
Cuthill-Mckee Ordering
Context Managers
Glossary
Developer Guide
Release Log
License
Credits
Citing
Bibliography
Examples
NetworkX
Docs
»
Reference
»
Utilities
»
networkx.utils.random_sequence.powerlaw_sequence
networkx.utils.random_sequence.powerlaw_sequence
¶
powerlaw_sequence
(
n
,
exponent=2.0
)
[source]
¶
Return sample sequence of length n from a power law distribution.