Install
Tutorial
Reference
Releases
Developer
Gallery
Guides
Home Page
GitHub
v2.7.1
devel (latest)
current (stable)
Introduction
Graph types
Algorithms
Functions
Graph generators
Linear algebra
Converting to and from other data formats
Relabeling nodes
Reading and writing graphs
Drawing
Randomness
Exceptions
Utilities
arbitrary_element
is_string_like
flatten
iterable
make_list_of_ints
make_str
generate_unique_node
default_opener
pairwise
groups
create_random_state
nodes_equal
edges_equal
graphs_equal
UnionFind.union
powerlaw_sequence
cumulative_distribution
discrete_sequence
zipf_rv
random_weighted_sample
weighted_choice
open_file
not_implemented_for
nodes_or_number
np_random_state
py_random_state
networkx.utils.decorators.argmap
cuthill_mckee_ordering
reverse_cuthill_mckee_ordering
Glossary
pairwise
¶
pairwise
(
iterable
,
cyclic
=
False
)
[source]
¶
s -> (s0, s1), (s1, s2), (s2, s3), …