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.
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
- Name: Kathan Majithia
- Contact: kathanmajithia@gmail.com
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file networkdiagram-1.9.5.tar.gz.
File metadata
- Download URL: networkdiagram-1.9.5.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5720f677efd7947de138565609aa67f0698ae40fd493d33711ab7e185431abe
|
|
| MD5 |
6b10d2a3e97e8024d2a747ba355957b4
|
|
| BLAKE2b-256 |
31f45e3b5cd40fdd417dc5ef6094e3b00a4ec9b44862ea3d53b95548af8ddedf
|
File details
Details for the file networkdiagram-1.9.5-py3-none-any.whl.
File metadata
- Download URL: networkdiagram-1.9.5-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
def9320172b47e929e1127530f96a4591344410b87008b6384f0f7930889d493
|
|
| MD5 |
9c566c57c8a45bf2bf521e643952123f
|
|
| BLAKE2b-256 |
da192c81e69298dc4ebd733b7d39100afa2696e54593c4e420727ba5bd9c16b0
|