Skip to main content

Analyzing DAGs in Python

The dagtools package provides utilities for computing various graph-theoretic properties of DAGs (Directed Acyclic Graphs).

Graph Formats and Conversion

The dagtools package is familiar with the below graph formats, and can convert between any of them:

  • DOT Format
  • networkx.Graph and related subclasses

The example below shows how to convert a networkx Graph into a DOT formatted string using the dagtools.convert module. Note, the inverse operation is also available, via the convert.got_to_graph function.

>>> import networkx                   
>>> from dagtools import convert
>>> g = networkx.MultiGraph()
>>> g.add_nodes_from([1, 2, 3])
>>> g.add_edges_from([(1, 2), (1, 3)], key=0)
>>> print(convert.graph_to_dot(g))
graph  {
1;
2;
3;
1 -- 2  [key=0];
1 -- 3  [key=0];
}

Metadata

Release files for dagtools 0.0.2

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

Source distribution (sdist)

Source distribution for dagtools 0.0.2
File Size Uploaded Provenance Actions
dagtools-0.0.2.tar.gz 2.4 kB Without provenance Details for dagtools-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 6.5 kB

Release files / dagtools-0.0.2.tar.gz

Download URL dagtools-0.0.2.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b5de22bf51db94ea41560faa1bfc197c436bc38615a88de1bf5cd9979fd808bd
BLAKE2b-256 checksum
How to use checksums
2001ff859becec763116ab8b2a1a32f9624bbe7714e5e335fc4dddba59ff807b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release files / dagtools-0.0.2-py3-none-any.whl

Download URL dagtools-0.0.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38335ed2e350dbcb030a99b9550547330c353635e1ff3c8354d7fb6ad9427647
BLAKE2b-256 checksum
How to use checksums
a8c90c5bd53ebf9232c52c1dbae8725f076ff498b880355e94dc9db733ebf250
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Security for dagtools 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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