Exercise
In order to get more proficient with the GDS Python client, I recommend you redo the analysis from Chapter 4, Using Graph Algorithms to Characterize a Graph Dataset, with it. That is, do the following:
- Build projected graphs that contain the following:
Person
nodes and all relationships.Person
andMovie
nodes with all relationships.Person
nodes withKNOWS
relationships, undirected.Person
nodes withKNOWS
relationships aggregated to keep one single relationship between the same two nodes.Person
nodes withKNOWS
relationships aggregated to store the number of relationships between the same two nodes in aweight
property.- Using Cypher projection:
Movie
nodes and a relationship between two movies when at least one person acted in or directed both movies. Save the movie’s release year and the relationship’s weight (the number of persons collaborating on both movies) as node and relationship properties, respectively.
- Run graph algorithms: Using the projected...