TopologicalSet

class lsst.daf.butler.core.utils.TopologicalSet(elements)

Bases: collections.abc.Set

A collection that behaves like a builtin set, but where elements can be interconnected (like a graph).

Iteration over this collection visits its elements in topologically sorted order.

Parameters:
elements : Iterable

Any iterable with elements to insert.