Assigning Coordinates to Graph embedding in Sage

asked 2021-09-11 23:47:07 +0200

skw23 gravatar image

How could I go about getting a set of coordinates corresponding to a particular (known) embedding of a Graph?

The framework (graph and embedding) I'm most interested in right now has vertices at only 4 radii and the vertices are evenly spaced at each radius, and any possible unit distance between two vertices is an edge. I know this could be done by hand, but could I get Sage to do it faster? I eventually want to be able to use indexed x and y coordinates (separately: x_1 with y_2, etc). (New to Sage)

edit retag flag offensive close merge delete

Comments

Welcome to Ask Sage! Thank you for your question!

slelievre gravatar imageslelievre ( 2021-09-12 09:32:26 +0200 )edit

Consider providing a starting point, such as a few lines of Sage code to define a particular graph you are interested in (ideally, the simplest possible example that can illustrate your question).

slelievre gravatar imageslelievre ( 2021-09-12 09:34:19 +0200 )edit