Windows Install labels not inside nodes

Hi, When I try to render my graph the node labels aren't inside the nodes. I'm using sfdp. This happens with any render type I select. Thanks in advance.

 

 

digraph structs {
graph [label="AfterGlow 1.6.4", fontsize=8]
node [shape=ellipse, style=filled, penwidth=0, fontsize=10, width=0.2, height=0.2, fontcolor="black", label="" ];
edge [len=3];
"443" [fillcolor=antiquewhite, xlabel="443"]
"80" [fillcolor=antiquewhite, xlabel="80"]
"" [fillcolor=antiquewhite, xlabel=""]
"53" [fillcolor=antiquewhite, xlabel="53"]
"" [shape=box, fillcolor=antiquewhite, xlabel=""]
"Built" [shape=box, fillcolor=antiquewhite, xlabel="Built"]
"" [fillcolor=antiquewhite, xlabel=""]
"10.10.9.130" [fillcolor=antiquewhite, xlabel="10.10.9.130"]
"10.10.9.70" [fillcolor=antiquewhite, xlabel="10.10.9.70"]
"10.10.9.87" [fillcolor=antiquewhite, xlabel="10.10.9.87"]
"10.10.10.60" [fillcolor=antiquewhite, xlabel="10.10.10.60"]
"10.10.9.79" [fillcolor=antiquewhite, xlabel="10.10.9.79"]
"" -> ""
"443" -> "Built"
"80" -> "Built"
"53" -> "Built"
"Built" -> "10.10.9.130"
"Built" -> "10.10.10.60"
"Built" -> "10.10.9.70"
"Built" -> "10.10.9.79"
"Built" -> "10.10.9.87"
"" -> ""
}

 

That is because you are using

That is because you are using xlabels, i.e., exterior labels, and have set label="" by default, so the interior labels are the empty string. Since a node's label is its name by default, you could just write your graph as

 

digraph structs {
  graph [label="AfterGlow 1.6.4", fontsize=8]
  node [fillcolor=antiquewhite, style=filled, penwidth=0, fontsize=10, width=0.2, height=0.2]
  edge [len=3];
  "Built" [shape=box]
  "443" -> "Built"
  "80" -> "Built"
  "53" -> "Built"
  "Built" -> "10.10.9.130"
  "Built" -> "10.10.10.60"
  "Built" -> "10.10.9.70"
  "Built" -> "10.10.9.79"
  "Built" -> "10.10.9.87"
}

 

I dropped the nodes named "" as I wasn't sure what your intent was. Since a node's name is the unique identifier for a node, the lines

"" [shape=box, fillcolor=antiquewhite, xlabel=""]
"" [fillcolor=antiquewhite, xlabel=""]

refer to the same node, and the edges

"" -> ""

"" -> ""

describe two loops on that node. If you really want two nodes, you have to give them unique names.

Recent comments