- This event has passed.
Competitive Programming
September 21, 2022 @ 6:00 pm - 8:00 pm
Homework:
Implement Graph with
- Dictionary(this is what I implemented in class)
- List of Edges(this is the first way of represent we discussed in class, you can assume weight is always 1)
Following methods are required to be implemented:
get_edges(): return all edges
get_nodes(): return all nodes
get_connected_nodes(node1): return all nodes connected with node1
delete_edge(node1, node2): delete the node between node1 and node2