# Draw a dependency network in VectorPaint: forward pass and critical path

Language: en
Canonical: [Draw a dependency network in VectorPaint: forward pass and critical path](<https://allluckly.cn/en/guides/vectorpaint-critical-path-dependency-forward-pass/>)
中文：[中文 HTML](<https://allluckly.cn/guides/vectorpaint-critical-path-dependency-forward-pass/>)
English: [English HTML](<https://allluckly.cn/en/guides/vectorpaint-critical-path-dependency-forward-pass/>)
Published: 2026-11-26T00:00:00+08:00
Modified: 2026-11-26T09:38:55+08:00
Author: Bison

Draw a fictional four-task network and calculate earliest finish times and the critical path.

English translation of the [Chinese original](<https://allluckly.cn/guides/vectorpaint-critical-path-dependency-forward-pass/>), translated on 2026-11-26. Original publication dates, attribution, code and version notes are retained.

Draw a fictional four-task network and calculate earliest finish times and the critical path.

## Define four tasks

Imagine a project without resource conflicts or waiting, using directly additive days: A preparation takes 2 days; afterward B drawing takes 3 days and C writing takes 4 days in parallel; D integration takes 1 day and starts only after both B and C finish. A has no prerequisite; B and C both require A; D requires B and C. This is a teaching example, not a real schedule commitment.

## Set up canvas and nodes

Create a landscape canvas in VectorPaint and save an editable original. Use the available rectangle, line and text controls to make four task nodes. Give A, B, C and D equal-sized boxes with space for a name, duration and times. Place them manually; do not assume the app calculates or lays out the chart.

## Place the parallel branches

Place A on the left, B and C above and below in the middle, and D on the right. Give B and C roughly aligned horizontal starts to show both follow A, but the horizontal coordinate in this dependency diagram is not a precise time axis. Durations come from the numbers inside boxes, not their widths.

## Connect four dependencies

Draw directed connectors A→B, A→C, B→D and C→D, for four edges. Stop arrowheads at box boundaries rather than covering text; move a box if necessary without changing dependencies. Two incoming edges to D mean both prerequisites must finish, not merely one.

After adding arrowheads, read each relationship from A: B can start after A, C can start after A, and each of B and C is a prerequisite for D. If lines cross, reroute them or add bends; do not treat an unmarked crossing as an extra task or dependency.

## Write durations and start

Label A as 2 days, B as 3, C as 4 and D as 1. Express times as elapsed-day boundaries from project start: A starts earliest at 0 and finishes at 0+2=2. The numbers are elapsed boundaries, not weekday labels. Keep the same unit throughout the example.

## Forward-pass B and C

A is the sole predecessor of B and C, so both start earliest at 2. B finishes at 2+3=5 and C at 2+4=6. Reserve text positions for earliest start, duration and earliest finish and write 2/3/5 and 2/4/6. If space is limited, place labels beside boxes with short leaders rather than changing durations.

## Forward-pass merge task D

D waits for both predecessors, so its earliest start is the later finish, max(5,6)=6, not 5 and not the sum of 5 and 6. Its one-day duration gives earliest finish 6+1=7. Write D’s 6/1/7 and annotate that both B and C must be complete; that condition determines the merge.

Write the merge rule beside the table: earliest start is the maximum earliest finish among all prerequisites. Here 5 for B and 6 for C are parallel results, so choose 6; it is not because C is lower on the page or has a longer drawn line. If a duration changes, recompute both sides before comparing.

## Compare the full paths

There are two paths from A to D: A→B→D totals 2+3+1=6 days, while A→C→D totals 2+4+1=7. Under the example’s dependencies and unlimited-resource assumption, the longer A→C→D path sets the earliest finish at 7 days. Emphasize it with a thicker or dashed line while retaining the shorter A→B→D path.

## Verify one day of slack

With all else fixed, B finishes earliest at 5 while D cannot start before 6; B’s finish can therefore slip by at most one day without changing D’s start. This follows from 6−5=1 and is not a universal one-day allowance. If B instead slips by two days, it finishes at 7, D starts no earlier than 7 and the project finishes at 8.

Make a separate tie comparison: copy the original and change only C from four days to three. B and C both finish on day 5, so D runs from day 5 to day 6; A→B→D and A→C→D both take six days and are co-critical paths. Mark both paths, retain the original four-day version, and distinguish this case from the later comparison where C takes two days. Do not mix the results of the three scenarios.

## Distinguish network and calendar

Equal box widths identify node type; they do not mean equal durations. A real calendar also needs a start date, working days, holidays, resource availability and waiting constraints. Do not convert “day 7” directly into a calendar date without them. The two-path example does not imply complex networks have a unique critical path: multiple paths may tie for longest.

## Test one changed duration

Duplicate the original and change only C from 4 days to 2. B still finishes at 5 while C now finishes at 4; D waits for B, starts at 5 and finishes at 6. A→B→D is now the longer path. Update both highlighting and time labels rather than editing only C’s number. Keep the four-day original for comparison.

## Make a verification table

Beside the diagram write four rows for task, predecessors, earliest start, duration and earliest finish: A has none, 0, 2, 2; B has A, 2, 3, 5; C has A, 2, 4, 6; D has B and C, 6, 1, 7. Match each number to the node. Listing only one predecessor for D changes the problem. The table also provides a text alternative to colored lines.

## Check direction and shared nodes

Trace A→C→D and A→B→D separately, checking arrow direction and task duration. Count A and D once in each path; do not add both branches together as one path. Keep both incoming edges to D and explain in the legend that the thick line marks the longest path in this example, not a more expensive or urgent task.

## Save and troubleshoot

Save the editable original, then use a visible share or export control to save a separate PNG or PDF. Reopen it and check all four nodes, four edges, time labels and legend. If D starts at 5, check whether C was omitted; if the project totals 10, check whether parallel branches were incorrectly added. This diagram was manually calculated and drawn; it claims neither automatic scheduling nor a physical-device test.

When reopening the export, ignore highlight colour at first and trace arrows and labels from A to D. Both paths and D’s two prerequisites should remain legible. If the weight difference is unclear in monochrome, add a legend or path name and inspect a new export. Keep the original-value version so the changed-C comparison cannot be mistaken for the initial result.

## Related guides and sources

[Task interval Gantt chart](<https://allluckly.cn/en/guides/vectorpaint-task-interval-gantt/>); [Binary search tree paths](<https://allluckly.cn/en/guides/vectorpaint-binary-search-tree-insertion-search-path/>).

Checked 26 November 2026: [Atlassian critical path method](<https://www.atlassian.com/work-management/project-management/critical-path-method>); [Apple public lookup](<https://itunes.apple.com/lookup?id=1587272880&country=cn>).

