ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 20 Jun 2019 10:14:24 -0500Plotting Graphs with different size verticeshttps://ask.sagemath.org/question/46953/plotting-graphs-with-different-size-vertices/ Hi, I'm trying to plot a graph where all vertices have a different size, depending on a value assigned to them, so a vertex with a high value would have a larger circumference.
I don't really know where to start. Can you help me?Thu, 20 Jun 2019 05:58:49 -0500https://ask.sagemath.org/question/46953/plotting-graphs-with-different-size-vertices/Comment by FrédéricC for <p>Hi, I'm trying to plot a graph where all vertices have a different size, depending on a value assigned to them, so a vertex with a high value would have a larger circumference. </p>
<p>I don't really know where to start. Can you help me?</p>
https://ask.sagemath.org/question/46953/plotting-graphs-with-different-size-vertices/?comment=46956#post-id-46956First sketch:
sage: G=Graph({1:[2],2:[3,4,5]})
sage: P=G.plot(save_pos=True)
sage: pos=G.get_pos()
sage: sum(circle(xy,0.33,color='red') for xy in pos.values())+PThu, 20 Jun 2019 10:14:24 -0500https://ask.sagemath.org/question/46953/plotting-graphs-with-different-size-vertices/?comment=46956#post-id-46956