Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

networkx.utils.misc.pairwise

pairwise(iterable, cyclic=False)[source]

s -> (s0, s1), (s1, s2), (s2, s3), …