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 Provenance Actions
networkdiagram-1.9.5.tar.gz 4.8 kB Without provenance Details for networkdiagram-1.9.5.tar.gz

Built distribution (wheel)

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

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

Security for networkdiagram 1.9.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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