This question already has an answer here:
- Map points on a square onto a Torus 1 answer
I'm trying to figure out how to plot a graph on a surface. My goal is to represent a planar embedding of $ K_5$ in a torus. I have encountered this post, where you can find an explanation how to plot a contour on a torus. However, I'm not very keen on representing a graph as a function.
I was thinking that it might be a good idea to first embed the graph into a square and then "gluing" this square into a torus. I'm not sure how to apply this idea.
I will appreciate any hints