daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Feb 21st, 2018 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. usepackage{tikz}
  2.  
  3. tikzstyle{vertex} = [fill, shape=circle, opacity=1, node distance=80pt]
  4. tikzstyle{hyperedge} = [fill, opacity=1, cap=round, join=round, line width=60pt]
  5. tikzstyle{elabel} = [fill, shape=circle, node distance=30pt]
  6.  
  7. pgfdeclarelayer{background}
  8. pgfsetlayers{background,main}
  9.  
  10. begin{document}
  11.  
  12. begin{tikzpicture}
  13. node[vertex,label=above left:$v_1$] (v1) {};
  14. node[vertex,right of=v1,label=above right:$v_2$] (v2) {};
  15. node[vertex,below of=v1,label=below left:$v_3$] (v3) {};
  16. node[vertex,right of=v3,label=below right:$v_4$] (v4) {};
  17.  
  18. begin{pgfonlayer}{background}
  19.  
  20. draw[hyperedge, color=yellow] (v1.center)--(v2.center)--(v3.center)--cycle;
  21. draw[hyperedge, color=pink, line width=45pt] (v2.center)--(v3.center)--(v4.center)--cycle;
  22.  
  23. end{pgfonlayer}
  24.  
  25. node[elabel,color=yellow,label=right:$C_1$]  (e1) at (-3,0) {};
  26. node[elabel,below of=e1,color=pink,label=right:$C_2$]  (e2) {};
  27. end{tikzpicture}
  28.  
  29. end{document}
  30.    
  31. tikzstyle{hyperedge} = [fill, opacity=0.5, cap=round, join=round, line width=60pt]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top