Skip to main content

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 = CriticalPathMethod()

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

cpm.add_activities_relations(activities,durations,predecessors)

Metadata

Release files for networkdiagram 1.9.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for networkdiagram 1.9.5
File Size Uploaded
networkdiagram-1.9.5.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for networkdiagram 1.9.5
File Interpreter ABI Platform
networkdiagram-1.9.5-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / networkdiagram-1.9.5.tar.gz

Download URL networkdiagram-1.9.5.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e5720f677efd7947de138565609aa67f0698ae40fd493d33711ab7e185431abe
BLAKE2b-256 checksum
How to use checksums
31f45e3b5cd40fdd417dc5ef6094e3b00a4ec9b44862ea3d53b95548af8ddedf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.0

Release files / networkdiagram-1.9.5-py3-none-any.whl

Download URL networkdiagram-1.9.5-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
def9320172b47e929e1127530f96a4591344410b87008b6384f0f7930889d493
BLAKE2b-256 checksum
How to use checksums
da192c81e69298dc4ebd733b7d39100afa2696e54593c4e420727ba5bd9c16b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.0

Release history Release notifications | RSS feed

This release

1.9.5 This release

2 release files

1.9.4

2 release files

1.9.3

2 release files

1.9.2

2 release files

1.9.1

2 release files

1.9

2 release files

1.8

2 release files

1.7

2 release files

1.5

2 release files

1.4

2 release files

1.3

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page