I need to assign non-empty sets (instead of numbers) to the vertices of a graph. This may be called set-labeling of graphs. A graph with vertices having set-labels may be called set-labeled graphs (see the given figure). How can I draw set-labeled graphs using Tikz Package in LaTeX?
Thanks in advance,
Best Answer
I don't know where you got
\vertex
from, but for a normal TikZnode
you need to enclose the entire label in{ .. }
, because the parser is confused by the comma in the label. So uselabel={right:$\{x_1,x_2\}$}
instead oflabel=right:$\{x_1,x_2\}$