CoCalc Public FilesPublic / graph_tool_example.sagewsOpen with one click!
Author: Hal Snyder
Views : 71
Description: graph_tool example
Compute Environment: Ubuntu 18.04 (Deprecated)

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");