Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

networkx.utils.misc.pairwise

pairwise(iterable, cyclic=False)[source]

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