Photo by rawpixel.com from Pexels

May 1: Labour Day, One Month Graph Challenge

Vlad Batushkov
May 1 · 2 min read

Welcome word

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

Domain model

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.

Graph

Generate a graph with nodes of working days and weekends:

Link days into one year with help of APOC function:

Resume

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.

Resources

Vlad Batushkov

Written by

Indie view on software development. Brewed with hops, web and rock’n’roll.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade