TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trialling tikz mindmap as a tool for drawing network diagrams. Everything is great, however what I'd like is to be able to have some control over the node sizes.

As an example, say my root note is a firewall with 8 interfaces, and the 8 child nodes under this firewall node are interface nodes. Child to that is then any single-homed hosts. Each multihomed host would be configured similar to this, and I'd use paths to connect them.

Basically what I'm getting at is this: I'd prefer to have something like the mindmap, but in fact not a tree - rather a graph; I did not find such a library in tikz. Other notes:

  • I'm avoiding dot2tex and graffle for the time being, as I need these diagrams to have a little fancy).
  • I don't want to use simple nodes and paths (as I have to do more work with positioning the nodes).

Any suggestions? So all I'm after, is the ability to declare nodes, and give them a set radius, for example:

every node/.style={concept, execute at begin node=\hskip0pt, fill, scale=0.7},
root concept/.append style={level distance=10, concept color=black, grow cyclic},
level 1 concept/.append style={level distance=90, sibling angle=60, text=white},
level 2 concept/.append style={level distance=70, sibling angle=60, text=white},
router/.style={concept color=green, fill=black, text=lime, line width=1ex},
firewall/.style={concept color=red, fill=black, text=red, line width=1ex},
site/.style={concept color=green},
linux/.style={concept color=blue!75!white},
null/.style={concept color=red},
lan/.style={concept color=gray},
    concept color=black,
    line width=1ex,
    node width=1cm % *** for example ***
openbsd/.style={concept color=yellow!50!orange},
share|improve this question

You can set the node size by using the parameters

minimum size=0pt,
text width=<dimension>

in place of your node width parameter and entering the desired value instead of <dimension>. Note that the actual size of the node will be larger than dimension by the values for inner sep and line width.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.