UniqueID
UniqueID.current
UniqueID.get()
reversed_enumerate()
Miscellaneous diagram-unrelated tools for ADG.
Bases: object
object
Counter making sure of generating a unique ID number for diagrams.
The unique identifier to be attributedto a diagram.
int
Iterate on counter value and return current value.
A unique identifier for the diagram.
Return the index and item of the data in reversed order.
data (iterable data structure) – The data to be used..
Index and item.
tuple
>>> list(reversed_enumerate(['A', 'B', 'C'])) [(2, 'C'), (1, 'B'), (0, 'A')]