Project models in Neo4j: one waste-removal example
These historical examples compare ways to describe the same small project. Identify the waste so it is understood; prepare an extraction plan so it is agreed; commission suppliers so they are ready; then remove the waste so none remains on site.
What should the graph make explicit: the work, the conditions it produces, the people involved, or schedule fields? The repository contains nine Cypher files with seven distinct contents, plus diagrams. They are graph-construction examples from 2020, with differing scope and detail.

Seven views to compare
-
Tasks as nodes. Script · Diagram. Four named activities form a chain of
permitsrelationships. This gives a compact account of what follows what. The conditions explaining those dependencies, role allocations and durations are absent. -
States as nodes. Script · Diagram. Four achieved conditions are joined by
transitions_with_task. The view foregrounds what must become true. The relationships carry no task names, and the initial act of identifying waste has no separate representation. The.cypher.textfile duplicates this script. -
Tasks and states together. Script · Diagram. Tasks
causestates; statespermitlater tasks. This exposes the condition between consecutive activities. The relationship names express the model’s intended meaning; the file does not check whether a condition holds or a task may execute. Roles and timing remain absent. -
Tasks, states and resources. Script · Diagram. Operator, Engineer, Project_manager and Supplier connect to tasks through
allocated_to. The Supplier participates in both commissioning and removal. These links show involvement, without quantities, availability, calendars, cost or capacity constraints. -
Add direct task dependencies. Script · Diagram. Direct task-to-task
permitsedges sit beside the task–state–task paths. They make the activity sequence easier to follow, while duplicating relationships that a maintained model would need to keep consistent. No derivation or consistency check is supplied. The.cypher.txtfile duplicates this script. -
Petri-net-shaped fragment. Script · Diagram. Only the first two tasks appear, as transitions; roles and states become places with token properties. There is no firing engine. Both state places already contain one token. The
Waste understoodinput storesConsumed_tokens:0: zero consumption alone does not specify a requirement to test token presence. A read arc explicitly tests without consuming. Resource units and whether resources should be returned remain unresolved; no return arcs are present. This fragment does not demonstrate executable prerequisite or resource control. -
Stored schedule attributes. Script · Related structure diagram. Start/Finish nodes and duration, earliest/latest dates and slack are added. The file imports the numbers; it contains no scheduling algorithm. The related diagram omits these additions.
Scope and other retained material
The scripts use historical constraint syntax; compatibility with current Neo4j has not been verified. No resource-constrained scheduling, simulation or optimisation result is established here.
Highways delay prediction: a separate notebook
Notebook labelled August 2020; reading guidance added 2 October 2026.
Read the pictured guide in the Library · Open the original notebook
Could completed A14 activities help predict finish variance for work that has not started? The notebook selects a 30 September 2019 reporting snapshot, separates completed from not-started activities, and tries both classification (FinishDateVariance >= 5) and regression of the variance itself. The field’s units and sign convention are not established in the notebook; it does not predict activity duration.
Its useful thread is the warning about information available at prediction time. Read from Bring in data through Exploratory Data analyis, then the classifier and regressor sections. The saved training-set comparisons are not a test on future work. DABL model-selection scores are also retained, but a separate test set and prediction-to-activity index checks remain unfinished. Cleaning precedes the completed/not-started split; feature availability and preparation need validation.
The required local P6Activities.csv is absent. The notebook and its saved outputs are preserved unchanged and were not rerun for this guide. This tabular prediction experiment is separate from the graph-model examples above.
Other retained files
The repository also preserves an earlier activity-schema picture, a tasks-and-resources-only diagram, an Apple Pages note, a saved Quora PDF, and separate Browning-letter data and images. The Pages note and PDF have not been reviewed for this guide.