Gantt Charts and Network Diagrams

Gantt charts and network diagrams are commonly used tools in project management to schedule tasks within a project. By varying individual task predecessors and task durations, this Demonstration allows for a simple exploration of basic project management concepts, such as determining project duration, the critical path, and total slack. Changes can be observed in the project network, Gantt chart, and a summary table. On the Gantt chart, task durations are indicated in black and slack time in gray.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Project management is the set of skills applied to control and monitor a team's progress through a project. An example of these skills is managing project scheduling, where tasks within a project are given durations and prerequisites are determined.
In this Demonstration there are five tasks. One or several tasks can depend on other tasks; for example, the task of "watching a film at the cinema" has a prerequisite of "purchasing ticket" and "getting snacks", where both tasks need to be completed before you can watch a film. The "network diagram" is referred to as an "activity-on-node" diagram, where tasks are performed on the nodes of the graph. It is very important to observe that task durations have no effect on this diagram. Network diagrams only indicate task dependencies (as shown in Snapshot 2).
The Gantt chart indicates the interrelationship between task durations and precedence. Task durations are indicated in black. Snapshot 2 shows the duration of the tasks that can only start when prerequisite tasks are complete, and upon completion allow other tasks to be completed. Tasks may have several prerequisites.
However, it is possible that there is an opportunity to delay the start of a task without impacting the project duration. This is referred to as slack time, and is indicated by gray bars on the Gantt chart. Tasks that have no slack (in Snapshot 2, these are tasks 1, 2, 3, and 5) are referred to as critical tasks; delaying these tasks will delay the time to finish the project. Therefore, the critical path is the set of critical tasks, and the sum of task durations on the critical path is the project duration. This process is called the critical path method (CPM).
However, the project's duration is equally calculated by determining the longest possible path through the project network. Therefore, it is not possible to have loops within the project. For example, if you need to "view car speedometer" and "alter car speed" (two activities that form a feedback loop), then this cannot be depicted in a network diagram and CPM cannot be performed (as the project duration, in theory, will be infinite). A practical method of bypassing this dilemma is to create a master task (in the example, this can be "drive car") and give this master task a fixed duration.
Snapshot 3 shows a summary table showing key information for each task: a task's early start (the earliest time a task can commence), late start (the latest time a task can commence), early finish (the earliest time a task can finish if started at the earliest start time), late finish (the latest time a task can finish if started at the latest time), and slack time (the difference between the late finish and early finish, or late start and early start). A task's duration is the difference between the early finish and early start, or the late finish and late start.
For more information about project management, see the Project Management Institute, especially the Project Management Body of Knowledge (PMBoK, a part of IEEE standard 1490-2003). Or see any local project management organization, such as the Australian Institute of Project Management.
Snapshot 1: Gantt chart of example project (display mode = "Gantt chart")
Snapshot 2: network diagram of example project (display mode = "network diagram")
Snapshot 3: summary table of example project (display mode = "information")
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+