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.Sat, 30 Mar 2013 10:52:16 +0100How to plot a sparse graph with small cycles ?https://ask.sagemath.org/question/9957/how-to-plot-a-sparse-graph-with-small-cycles/Hello,
I have a sparse graph which have few cycles which moreover are small compared to the size of the graph. In other words, my graph looks like a tree. Is there a better way than the default to plot it ?
My graph is precisely the giant component of an random ErdÃ¶s-Renyi graph with parameter just above 1 as in:
sage: G = graphs.RandomGNP(1000, 1.3 / 1000)
sage: cc = G.connected_components_subgraphs()
sage: giant_comp = cc[0]
On my computer, the default picture has a lot of overlaps:
sage: giant_comp.plot(vertex_labels=False, vertex_size=10)
VincentSat, 30 Mar 2013 10:52:16 +0100https://ask.sagemath.org/question/9957/how-to-plot-a-sparse-graph-with-small-cycles/