{"id":18611591,"url":"https://github.com/twosigma/nxv","last_synced_at":"2025-04-10T23:30:50.715Z","repository":{"id":57447439,"uuid":"296130088","full_name":"twosigma/nxv","owner":"twosigma","description":"Render NetworkX graphs using GraphViz","archived":false,"fork":false,"pushed_at":"2020-09-27T21:52:37.000Z","size":172,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-10-30T12:09:24.389Z","etag":null,"topics":["draw","graph","graphviz","network","networkx","python","render","tree","visualization","visualize"],"latest_commit_sha":null,"homepage":"https://nxv.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twosigma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-16T19:35:50.000Z","updated_at":"2021-11-10T05:37:40.000Z","dependencies_parsed_at":"2022-09-05T05:01:06.248Z","dependency_job_id":null,"html_url":"https://github.com/twosigma/nxv","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twosigma%2Fnxv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twosigma%2Fnxv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twosigma%2Fnxv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twosigma%2Fnxv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twosigma","download_url":"https://codeload.github.com/twosigma/nxv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223449747,"owners_count":17146984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["draw","graph","graphviz","network","networkx","python","render","tree","visualization","visualize"],"created_at":"2024-11-07T03:14:15.929Z","updated_at":"2024-11-07T03:14:16.706Z","avatar_url":"https://github.com/twosigma.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/twosigma/nxv/raw/main/docs/_static/logo/logo.svg\" align=\"right\"\u003e\r\n\r\n# nxv\r\n\r\n[![PyPI Status](https://img.shields.io/pypi/v/nxv.svg)](https://pypi.python.org/pypi/nxv)\r\n[![Tests](https://github.com/twosigma/nxv/workflows/Tests/badge.svg)](https://github.com/twosigma/nxv/actions)\r\n[![Documentation Status](https://readthedocs.org/projects/nxv/badge/?version=latest)](https://nxv.readthedocs.io/en/latest/?badge=latest)\r\n[![Codecov](https://codecov.io/gh/twosigma/nxv/branch/main/graph/badge.svg)](https://codecov.io/gh/twosigma/nxv)\r\n\r\n\r\nRender NetworkX graphs using GraphViz.\r\n\r\n# Documentation\r\n\r\nhttps://nxv.readthedocs.io/\r\n\r\n# Basic Usage\r\n\r\n    import networkx as nx\r\n    import nxv\r\n    \r\n    graph = nx.Graph()\r\n    graph.add_edge(\"A\", \"B\")\r\n    graph.add_edge(\"B\", \"C\")\r\n    graph.add_edge(\"C\", \"D\")\r\n    graph.add_edge(\"B\", \"E\")\r\n\r\n    style = nxv.Style(\r\n        graph={\"rankdir\": \"LR\"},\r\n        node=lambda u, d: {\"shape\": \"circle\" if u in \"AEIOU\" else \"square\"},\r\n        edge=lambda u, v, d: {\"style\": \"dashed\", \"label\": u + v},\r\n    )\r\n    \r\n    nxv.render(graph, style)\r\n\r\n\u003cimg src=\"./docs/_static/example/quickstart_graph_functional_style.svg\"\u003e\r\n\r\n# Installation\r\n\r\n    pip install nxv\r\n\r\n# Development\r\n\r\nThis repository uses\r\n[Poetry](https://python-poetry.org/) and\r\n[Nox](https://nox.thea.codes/en/stable/)\r\nto manage the development environment and builds.\r\n\r\nTo list all Nox sessions:\r\n\r\n    python -m nox --list-sessions\r\n\r\nTo run the black code formatter:\r\n\r\n    python -m nox -rs black\r\n\r\nTo lint using flake8:\r\n\r\n    python -m nox -rs lint\r\n\r\nTo run the test suite:\r\n\r\n    python -m nox -rs tests\r\n\r\nTo build the documentation:\r\n\r\n    python -m nox -rs docs\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwosigma%2Fnxv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwosigma%2Fnxv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwosigma%2Fnxv/lists"}