Ask Your Question

lgmol's profile - activity

2022-07-28 21:17:22 +0200 received badge  Popular Question (source)
2018-08-17 22:50:49 +0200 commented answer Display graph drawings in order

Thanks! I did not know about the Jupyter notebook, and as you say it works perfectly.

2018-08-17 22:49:59 +0200 received badge  Scholar (source)
2018-08-17 22:49:58 +0200 received badge  Supporter (source)
2018-08-17 22:36:23 +0200 received badge  Student (source)
2018-08-17 22:30:57 +0200 asked a question Display graph drawings in order

Often I want to compute a graph parameter for each graph in a list of graphs. I would like to print the value of the chosen parameter along with a drawing of each graph. So I do something like this, where L is a list of graphs:

for G in L: print G.vertex_connectivity(); show(G.plot());

The problem is that the plots don't show up until after all of the printed output, and they appear in an order different from the original list. Is there any way to force a plot to appear exactly where I want it? I am using a Sage notebook.