networkx.utils.tee

networkx.utils.tee()

tee(iterable, n=2) –> tuple of n independent iterators.