Statistics
| Branch: | Revision:

iof-tools / networkxMiCe / networkx-master / doc / reference / utils.rst @ 5cef0f13

History | View | Annotate | Download (1.3 KB)

1 5cef0f13 tiamilani
*********
2
Utilities
3
*********
4
5
.. automodule:: networkx.utils
6
.. currentmodule:: networkx.utils
7
8
Helper Functions
9
----------------
10
.. automodule:: networkx.utils.misc
11
.. autosummary::
12
   :toctree: generated/
13
14
   is_string_like
15
   flatten
16
   iterable
17
   is_list_of_ints
18
   make_str
19
   generate_unique_node
20
   default_opener
21
   pairwise
22
   groups
23
   create_random_state
24
25
26
Data Structures and Algorithms
27
------------------------------
28
.. automodule:: networkx.utils.union_find
29
.. autosummary::
30
   :toctree: generated/
31
32
   UnionFind.union
33
34
Random Sequence Generators
35
--------------------------
36
.. automodule:: networkx.utils.random_sequence
37
.. autosummary::
38
   :toctree: generated/
39
40
   powerlaw_sequence
41
   cumulative_distribution
42
   discrete_sequence
43
   zipf_rv
44
   random_weighted_sample
45
   weighted_choice
46
47
Decorators
48
----------
49
.. automodule:: networkx.utils.decorators
50
.. autosummary::
51
   :toctree: generated/
52
53
   open_file
54
   not_implemented_for
55
   nodes_or_number
56
   preserve_random_state
57
   random_state
58
59
Cuthill-Mckee Ordering
60
----------------------
61
.. automodule:: networkx.utils.rcm
62
.. autosummary::
63
   :toctree: generated/
64
65
   cuthill_mckee_ordering
66
   reverse_cuthill_mckee_ordering
67
68
Context Managers
69
----------------
70
.. automodule:: networkx.utils.contextmanagers
71
.. autosummary::
72
   :toctree: generated/
73
74
   reversed