稀疏图的Numpy高效实现
sparse-graphs的Python项目详细描述
要实例化图形:
graph=AsymMesh(n=10_000,k=6,dim=2,img_dim=[2],kernel_fn=l2,embed_fn=id2D,d_max=20)graph.extend(xys,images=xys,meta=xys)graph.update_zs()graph.update_edges()
大多数情况下,只通过 当附近没有现有顶点时添加新顶点。 新的重复数据消除API允许我们以批处理方式执行此操作:
^{pr2}$Dense | Sparse | Details |
---|---|---|
10x more edges in the dense graph in comparison to the sparse graph. |
- 项目
标签: