Open in CoCalc with one click!

graph_tool example

links

p3 = jupyter("python3")
%default_mode p3
import graph_tool.all as gt g = gt.price_network(500) pos = gt.sfdp_layout(g) gt.graph_draw(g, pos=pos, output="graph-draw-sfdp.pdf");