Skip to main content

A Python library for creating, calculating, and visualizing CPM/PERT Network Diagrams.

Project description

NetworkDiagram

A lightweight Python library for creating Project Network Diagrams (CPM/PERT), calculating paths, and visualizing activity dependencies using NetworkX and Matplotlib.

Python Version License

Features

  • Easy Node Management: Add activities with durations and string-based predecessor lists (e.g., "A,B").
  • Automatic Pathfinding: Detects all probable paths from Start to End.
  • Visualisation: Generates directed graphs with arrows and duration labels using matplotlib.
  • CPM Ready: Built on a node structure supporting Probable Paths, Critical Path.

Publisher

Dependencies

To use the visualization features, you must have the following libraries installed:

  • networkx (for graph theory and structure)
  • matplotlib (for plotting the diagram)

Installation

pip install networkdiagram

from networkdiagram import CriticalPathMethod

cpm = CriticalPathMethodk()

activities = ['A','B','C','D']
durations = [2,5,4,2]
predecessors = ['-','A','B','B,C']

cpm.add_activity('O',0)
cpm.add_activities_relations(activities,durations,predecessors)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

networkdiagram-1.9.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

networkdiagram-1.9.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file networkdiagram-1.9.2.tar.gz.

File metadata

  • Download URL: networkdiagram-1.9.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.0

File hashes

Hashes for networkdiagram-1.9.2.tar.gz
Algorithm Hash digest
SHA256 4d3b4c0393503165b5a1c44d60f17328383195333760d9c9986837fd4214c692
MD5 1cf20b5d35d1e2df8d9569e59e8af418
BLAKE2b-256 bf06f077412a9b50a1064d3d1621901f2f1c797f31c957d4a5daa0dc9e2f3cd3

See more details on using hashes here.

File details

Details for the file networkdiagram-1.9.2-py3-none-any.whl.

File metadata

  • Download URL: networkdiagram-1.9.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.0

File hashes

Hashes for networkdiagram-1.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e2ad33b74592ba3f068c866ba2ddb72ce0f3d4115ba287c2398d74194a228b11
MD5 64439a7f11a9300cf52d96306f3ae038
BLAKE2b-256 1fac15edf3b5ec094837b68c1db215bbe2d7584b0f1e7abc8d8a01bd91cceeb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page