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 labelA tag on a node that groups it with other nodes of the same kind. A node can carry more than one., creating indirect relationshipsA named, directed connection between two nodes. Every relationship has a type, a start node and an end node., or normalizing propertiesA named value stored on a node or a relationship. to nodesA vertex in a graph. In a property graph it can carry labels and properties..
  2. Write the CypherNeo4j'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.