4.5 · Lesson

Challenge: Refactor the graph

In this challenge, you will need to:

  1. Identify an opportunity to refactor the graph by adding a new Full definition for label (opens in a new tab)A tag on a node that groups it with other nodes of the same kind. A node can carry more than one., creating indirect Full definition for relationship (opens in a new tab)A named, directed connection between two nodes. Every relationship has a type, a start node and an end node., or normalizing Full definition for property (opens in a new tab)A named value stored on a node or a relationship. to Full definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties..
  2. Write the Full definition for Cypher (opens in a new tab)Neo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it. query to refactor the graph.
  3. Create a new query that takes advantage of the refactored graph structure.