Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- usepackage{tikz}
- tikzstyle{vertex} = [fill, shape=circle, opacity=1, node distance=80pt]
- tikzstyle{hyperedge} = [fill, opacity=1, cap=round, join=round, line width=60pt]
- tikzstyle{elabel} = [fill, shape=circle, node distance=30pt]
- pgfdeclarelayer{background}
- pgfsetlayers{background,main}
- begin{document}
- begin{tikzpicture}
- node[vertex,label=above left:$v_1$] (v1) {};
- node[vertex,right of=v1,label=above right:$v_2$] (v2) {};
- node[vertex,below of=v1,label=below left:$v_3$] (v3) {};
- node[vertex,right of=v3,label=below right:$v_4$] (v4) {};
- begin{pgfonlayer}{background}
- draw[hyperedge, color=yellow] (v1.center)--(v2.center)--(v3.center)--cycle;
- draw[hyperedge, color=pink, line width=45pt] (v2.center)--(v3.center)--(v4.center)--cycle;
- end{pgfonlayer}
- node[elabel,color=yellow,label=right:$C_1$] (e1) at (-3,0) {};
- node[elabel,below of=e1,color=pink,label=right:$C_2$] (e2) {};
- end{tikzpicture}
- end{document}
- tikzstyle{hyperedge} = [fill, opacity=0.5, cap=round, join=round, line width=60pt]
Add Comment
Please, Sign In to add comment