Note

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

networkx.utils.misc.flatten

flatten(obj, result=None)[source]

Return flattened version of (possibly nested) iterable object.