Skip to main content

Visualization for DAGs

Project description

DAGVIZ

DAGVIZ offers a "git log"-like visualization for DAGs represented in networkx.

Installation

DAGVIZ can be installed with pip:

pip install dagviz

Documentation

Documentation is available at https://wimyedema.github.io/dagviz/.

Usage

DAGVIZ relies on networkx for the representation and manipulation of the DAG. An SVG file can be generated as follows:

    import dagviz
    import networkx as nx
    # Create the DAG
    G = nx.DiGraph()
    for i in range(5):
        G.add_node(f"n{i}")
    G.add_edge(f"n0", f"n1")
    G.add_edge(f"n0", f"n2")
    G.add_edge(f"n0", f"n4")
    G.add_edge(f"n1", f"n3")
    G.add_edge(f"n2", f"n3")
    G.add_edge(f"n3", f"n4")
    # Create an SVG as a string
    r = dagviz.render_svg(G)
    with open("simple.svg", "wt") as fs:
        fs.write(r)

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

dagviz-0.5.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

dagviz-0.5.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file dagviz-0.5.0.tar.gz.

File metadata

  • Download URL: dagviz-0.5.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for dagviz-0.5.0.tar.gz
Algorithm Hash digest
SHA256 600509c669dde421851705684663e6874b9edc2d0f52f100d3c45f3dcf5a28ae
MD5 a0e2af7ababb2d0fd301fde6b1379fcb
BLAKE2b-256 8a88582d56f95e952dfae40d3a70ac9e0ff2bdb33a99ac3133b6355bd4e6bce9

See more details on using hashes here.

File details

Details for the file dagviz-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: dagviz-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for dagviz-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25090df70c725ccd0df28316177cad58f82bb2a10a9ceee8544704ce327e3ae0
MD5 036c71567f2fc875daf363fc0ea588c1
BLAKE2b-256 d1bf72a88d339d04feaf29f9f81900adf628e0dbeeb0c2d71f61360f79cd82c6

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