NetworkX

Previous topic

networkx.utils.is_list_of_ints

Next topic

networkx.utils.UnionFind.union

networkx.utils._get_fh

_get_fh(path, mode='r')

Return a file handle for given path.

Path can be a string or a file handle.

Attempt to uncompress/compress files ending in ‘.gz’ and ‘.bz2’.