Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从 wolfram mathimatica 保存了一个 .gml,有没有人有如何加载文件并在网页上显示的示例?我目前正在处理 d3,另一种语言会更合适吗?
谢谢。
在一个开发者的博客上有一篇关于这个的非常好的帖子。
它的要点是 D3,即使在其最新版本(v4,在撰写本文时),也无法导入 GML 文件。但是,您可以将 GML 文件转换为 D3 可以读取的 JSON 文件。您可以使用NetworkX进行此转换。
或者,您可以使用Gephi将边和节点分别导出为 CSV。