如何使用任何工具可视化杂质pytorch几何图?
您好,可视化pyg杂种对象的好方法是什么? (类似地定义: https://pytorch-geometric.readthedocs.io/en/latest/notes/notes/heterogeneous.html#creating-html#creating-heterogeneous-gnns
)图(可以转换它,但内容却少得多)。
g = torch_geometric.utils.to_networkx(data.to_homogeneous(), to_undirected=False )
有没有人尝试与其他python lib(matplotlib)或JS(sigma.js/d3.js)一起做?
您可以分享的任何文档链接吗?
Hello what is a good way to visualize a pyg HeteroData object ?
(defined similarly: https://pytorch-geometric.readthedocs.io/en/latest/notes/heterogeneous.html#creating-heterogeneous-gnns )
I tried with networkx but I think it is restricted to homogeneous graph ( it is possible to convert it but it is much less informative).
g = torch_geometric.utils.to_networkx(data.to_homogeneous(), to_undirected=False )
Did anyone try to do it with other python lib (matplotlib) or js (sigma.js/d3.js)?
Any docs link you can share?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用NetworkX执行此操作,但是您需要进行一些编码来告诉它如何格式化节点和边缘。
You can do this with networkx, but you need to do some coding to tell it how to format the nodes and edges.
我已经完成了以下操作:
但是,它是“扁平”到同质的,而例如,在不同类型的节点中使用不同的颜色会更有趣。
I have done the following:
However, it's true that it was "flattened" to a homogeneous, while it'd be more interesting to, for example, use different colors for different types of nodes.