{"id":13870039,"url":"https://github.com/networkx/grave","last_synced_at":"2025-04-10T01:14:44.736Z","repository":{"id":48149328,"uuid":"127233341","full_name":"networkx/grave","owner":"networkx","description":"Grave—dead simple graph visualization","archived":false,"fork":false,"pushed_at":"2022-09-19T19:22:07.000Z","size":5683,"stargazers_count":100,"open_issues_count":9,"forks_count":29,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-04-10T01:14:37.552Z","etag":null,"topics":["graph-visualization","networkx","python"],"latest_commit_sha":null,"homepage":"https://networkx.github.io/grave/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/networkx.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-29T03:44:24.000Z","updated_at":"2025-02-24T00:13:33.000Z","dependencies_parsed_at":"2022-09-02T08:23:09.245Z","dependency_job_id":null,"html_url":"https://github.com/networkx/grave","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkx%2Fgrave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkx%2Fgrave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkx%2Fgrave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networkx%2Fgrave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/networkx","download_url":"https://codeload.github.com/networkx/grave/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137891,"owners_count":21053775,"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":["graph-visualization","networkx","python"],"created_at":"2024-08-05T20:01:26.365Z","updated_at":"2025-04-10T01:14:44.720Z","avatar_url":"https://github.com/networkx.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Grave—dead simple graph visualization\n=====================================\n\n.. image:: https://img.shields.io/pypi/v/grave.svg\n   :target: https://pypi.org/project/grave/\n\n.. image:: https://github.com/networkx/grave/workflows/test/badge.svg?branch=main\n     :target: https://github.com/networkx/grave/actions?query=workflow%3A%22test%22\n\n.. image:: https://codecov.io/gh/networkx/grave/branch/main/graph/badge.svg\n      :target: https://app.codecov.io/gh/networkx/grave/branch/main\n\n.. GH breaks rendering of SVG from the repo, so we redirect through rawgit.com.\n   GH ignores the width and align directives for PNGs.\n\n.. image:: https://rawgit.com/networkx/grave/main/doc/_static/default.svg\n   :width: 250px\n   :align: right\n   :alt: Logo\n\nGrave is a graph visualization package combining ideas from Matplotlib,\nNetworkX, and seaborn. Its goal is to provide a network drawing API that\ncovers the most use cases with sensible defaults and simple style\nconfiguration. Currently, it supports drawing graphs from NetworkX.\n\n- **Website (including documentation):** https://networkx.github.io/grave/\n- **Mailing list:** https://groups.google.com/forum/#!forum/networkx-discuss\n- **Source:** https://github.com/networkx/grave\n- **Bug reports:** https://github.com/networkx/grave/issues\n\nExample\n-------\n\nHere, we create a graph and color the nodes in its minimum weighted\ndominating set:\n\n.. code:: python\n\n    import matplotlib.pyplot as plt\n    import networkx as nx\n    from networkx.algorithms.approximation.dominating_set import min_weighted_dominating_set\n\n    from grave import plot_network\n\n    network = nx.powerlaw_cluster_graph(50, 1, .2)\n    dom_set = min_weighted_dominating_set(network)\n\n    for node, node_attrs in network.nodes(data=True):\n        node_attrs['is_dominator'] = True if node in dom_set else False\n\n    def color_dominators(node_attrs):\n        if node_attrs.get('is_dominator', False):\n            return {'color': 'red'}\n        else:\n            return {'color': 'black'}\n\n    fig, ax = plt.subplots()\n    plot_network(network, node_style=color_dominators)\n    plt.show()\n\nThe result:\n\n.. image:: https://rawgit.com/networkx/grave/main/doc/_static/dominators.svg\n    :width: 700\n    :align: center\n    :alt: Coloring the minimum weighted dominating set of a graph\n\nLicense\n-------\n\nReleased under the 3-Clause BSD license (see `LICENSE`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworkx%2Fgrave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetworkx%2Fgrave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworkx%2Fgrave/lists"}