将Digraph渲染为png

时间:2019-09-25 19:17:47

标签: python graphviz

此处共有Python noob。如何从

渲染PNG文件
// My New Network
digraph {
    graph [splines=ortho]
        node [shape=box]
        node [image="./images/switch1.png"]
        edge [weight=10]
        edge [arrowhead=none]
    label = "\n\nMy Prettier Network Diagram w/ straight edges"
    fontsize=20
        Arista249
        HP830_LSW
        HP_5500EI
        HP_5500EI
            Arista249 -> HP830_LSW
            Arista249 -> HP_5500EI
            Arista249 -> HP_5500EI
}

0 个答案:

没有答案