-
Notifications
You must be signed in to change notification settings - Fork 0
Stack
mstern98 edited this page Mar 25, 2021
·
2 revisions
Stack
stack()
Create a stack
>>> s = topylogic.stack()
Push an element
>>> s.push(element)
Pop an element (Use VERTEX_TYPE and EDGE_TYPE if the stack contains vertex or edge)
>>> s.pop(dtype=topylogic.NONE_TYPE)
Get an element (Use VERTEX_TYPE and EDGE_TYPE if the stack contains vertex or edge)
>>> s.get(dtype=topylogic.NONE_TYPE)
Get the stack in list form
>>> s.to_list(dtype=topylogic.NONE_TYPE)
Destroy the stack
>>> s.destroy()