8000 How to customize a networkx graph? · Issue #169 · pydot/pydot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
How to customize a networkx graph? #169
Closed
@giumas

Description

@giumas

What is the suggested way to customize the visualization of a graph created with networkx?

import networkx as nx
G = nx.petersen_graph()
pdot = nx.drawing.nx_pydot.to_pydot(G)

# some styling here
# ....

png_path = "test.png"
pdot.write_png(png_path)

test

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0