I'm trying to draw a slightly different graph where nodes are bags that store a collection of vertices.
I would like help to do this.
\documentclass[border=3pt]{standalone}\usepackage[upright]{fourier}\usepackage[dvipsnames]{xcolor}\usepackage{tikz}\usetikzlibrary{scopes}\usetikzlibrary{arrows}\usetikzlibrary{shapes}\usepackage{amsmath,xparse}\usetikzlibrary{calc}\begin{document}\begin{tikzpicture}[scale = 1.3] \tikzset{roundnode/.style = {thick, draw = black, fill = black, outer sep = 1.5, circle, minimum size = 2pt, scale = 0.75}}%%%%%%%%% Nodes %%%%%%%%% \node[roundnode = black] (A) at (9, 11){}; \node[roundnode = black] (B) at (9, 10){}; \node[roundnode = black] (C) at (7, 9){}; \node[roundnode = black] (D) at (8.4, 9){}; \node[roundnode = black] (E) at (9.6, 9){}; \node[roundnode = black] (F) at (11, 9){}; \tikzset{roundnode/.style = {thick, draw = white, fill = white, outer sep = 1.5, circle, minimum size = 2pt, scale = 1}} \draw[very thick] (9.25, 11) node{$v$}; \draw[very thick] (9.25, 10) node{$u$};%%%%%%%%% Edges %%%%%%%%% \draw[black, very thick] (A) to (B); \draw[very thick] (9.68, 10.5) node{$1$}; \draw[very thick] (7, 8.5) node{$2$}; \draw[very thick] (8.4, 8.5) node{$2$}; \draw[very thick] (9.6, 8.5) node{$2$}; \draw[very thick] (11, 8.5) node{$2$}; \draw[dashed] (9, 10.5) ellipse (0.46 and 0.9); \draw[dashed] (T) (7, 9) circle (0.3); \draw[dashed] (8.4, 9) circle (0.3); \draw[dashed] (9.6, 9) circle (0.3); \draw[dashed] (11, 9) circle (0.3);\end{tikzpicture}\end{document}