Assignment 1

Here is a repository that contains an immutable graph class. Change the implementation of the class in such a way that vertices and edges may have labels (a label can be anything, e.g. map of vectors). Of course, keep the graph class immutable. Implement a transform function similar to ones immutable collections from pyrsistent have. Try to change the graph class so that it will work with other transform functions. That is, if we define a PVector of Graphs such that vertex labels will be PMaps, can use transform on PVector to change the PMaps.

You should write your code in Python. Send your solution to The first deadline is 18.3.2020 23:59:59. The deadline for reviewed solution is 25.3.2020 23:59:59. The solutions sent later will be accepted, however the number of points awarded may be reduced.