Chaining Neo4j graph nodes using APOC Collection function
May 1: Labour Day, One Month Graph Challenge
In this series of small posts I do one simple graph daily. Domain model of graph somehow related to day’s history, some historical event, celebration or person. I do this challenge to learn Neo4j Data Modeling and Cypher. Every day. One month. Follow me. Maybe you will be inspired and next month would be yours One Month Graph Challenge. #OMGChallenge
First of May is a good day to not work, is not it. Because it’s a Labour Day! Thank you all for eight hours for work, eight hours for recreation, and eight hours for rest. Generate a graph of working days and weekends can be good idea for beginning.
Generate a graph with nodes of working days and weekends:
Link days into one year with help of APOC function:
I think must be a better way to achieve same result or at least optimize this one. Any ideas and suggestions are welcomed in comments.