Warning

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

flatten

flatten(obj, result=None)[source]

Return flattened version of (possibly nested) iterable object.