from bridges.bridges import *
from bridges.sl_element import *
import sys
def main():
bridges = Bridges(YOUR_ASSSIGNMENT_NUMBER, "YOUR_USER_ID", "YOUR_API_KEY")
bridges.set_title("A Singly Linked List Example")
bridges.set_description("A singly linked list of 4 nodes with names; the nodes in this example use string as the generic type")
st0 = SLelement(e="Gretel Chaney")
st1 = SLelement(e="Lamont Kyler")
st2 = SLelement(e="Gladys Serino")
st3 = SLelement(e="Karol Soderman")
st4 = SLelement(e="Starr McGinn")
st0.next = st1
st1.next = st2
st2.next = st3
st3.next = st4
st0.label = st0.value
st1.label = st1.value
st2.label = st2.value
st3.label = st3.value
st4.label = st4.value
bridges.set_data_structure(st0)
bridges.visualize()
if __name__ == "__main__":
main()