Open in CoCalc
g = graphs.RandomGNM(15, 20) # 15 vertices and 20 edges show(g) g.incidence_matrix()
d3-based renderer not yet implemented
[1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0] [0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0] [0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0] [0 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 1 1 0 0] [0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0] [0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1] [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0] [0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 1]
show(g.plot3d(), frame=False)
3D rendering not yet implemented
#Looks good: show(graphs.IcosahedralGraph().plot3d(bgcolor='white'), frame=False)
3D rendering not yet implemented
#Looks like crap show(graphs.IcosahedralGraph().plot3d(), frame=False)
3D rendering not yet implemented