I want to create math font inside of my vertex circles, AND draw edges between them. How I typically create network graphs is as follows:


\Edge[label= 20](B)(C)

However, if I do the following, it doesn't work. How can I get around this so that I can have equations or math font inside my nodes and connect them with an edge?

\Edge[label= 20]($2^n$)($t$)

The letters in the first examples serve as node labels hence referencing them needs text chars/numbers. If you want to put other types of labels you need to use L=<special chars> options. If L= option is empty the node label automatically becomes the visual label.


\Edge[label= 20](B)(T)

enter image description here

  • Also see the manual page 21 for [Math] option and \SetVertexMath switch.
    – percusse
    Jan 29 '13 at 2:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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