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