Week 11 Sample Solution
Sample solution for Week 11 lab
C.3. List and Pattern Comprehension
Combine the two above into one block of queries to reduce redundant code.
Modify the third code chunk and try to list the people with the number of occupation types related to them in desending order. e.g. (if the circle_occupation of Alice is ["Mechanic", "Actor"], the result should be Alice 2)
C.4. Virtual Relationships and Virtual Nodes (Graph Projections)
Adapt the above code to create such virtual nodes for all cities.
Last updated