ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 12 Sep 2021 09:34:19 +0200Assigning Coordinates to Graph embedding in Sagehttps://ask.sagemath.org/question/58968/assigning-coordinates-to-graph-embedding-in-sage/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)Sat, 11 Sep 2021 23:47:07 +0200https://ask.sagemath.org/question/58968/assigning-coordinates-to-graph-embedding-in-sage/Comment by slelievre for <p>How could I go about getting a set of coordinates corresponding to a particular (known) embedding of a Graph? </p>
<p>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)</p>
https://ask.sagemath.org/question/58968/assigning-coordinates-to-graph-embedding-in-sage/?comment=58976#post-id-58976Consider 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).Sun, 12 Sep 2021 09:34:19 +0200https://ask.sagemath.org/question/58968/assigning-coordinates-to-graph-embedding-in-sage/?comment=58976#post-id-58976Comment by slelievre for <p>How could I go about getting a set of coordinates corresponding to a particular (known) embedding of a Graph? </p>
<p>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)</p>
https://ask.sagemath.org/question/58968/assigning-coordinates-to-graph-embedding-in-sage/?comment=58975#post-id-58975Welcome to Ask Sage! Thank you for your question!Sun, 12 Sep 2021 09:32:26 +0200https://ask.sagemath.org/question/58968/assigning-coordinates-to-graph-embedding-in-sage/?comment=58975#post-id-58975