使用Pyvis和VisJS进行网络可视化
Network visualizations with Pyvis and VisJS
摘要:
Pyvis是一个Python模块,可以在Pyvis Notebook中可视化和交互式操作网络图,或者作为一个独立的Web应用程序。Pyvis构建在强大而成熟的VisJS JavaScript库之上,它允许快速响应的交互,同时也抽象了低级的JavaScript和HTML。这意味着渲染图形可视化的元素,如节点/边属性,可以在Python中指定,并交付给JavaScript层供VisJS渲染。这种声明式方法可以轻松地快速探索图形可视化和调查数据关系。此外,Pyvis是高度可定制的,因此颜色、大小和悬停工具提示可以分配给呈现的图形。网络图布局由一个前端物理引擎控制,该引擎可从Python接口进行配置,允许图形元素的详细放置。在本文中,我们概述了Pyvis的用例,并通过具体示例来突出任何分析工作流的关键功能。Pyvis实现的简要概述描述了Python前端绑定如何使用简单的Pyvis调用。
英文摘要:
Pyvis is a Python module that enables visualizing and interactively manipulating network graphs in the Jupyter notebook, or as a standalone web application. Pyvis is built on top of the powerful and mature VisJS JavaScript library, which allows for fast and responsive interactions while also abstracting away the low-level JavaScript and HTML. This means that elements of the rendered graph visualization, such as node/edge attributes can be specified within Python and shipped to the JavaScript layer for VisJS to render. This declarative approach makes it easy to quickly explore graph visualizations and investigate data relationships. In addition, Pyvis is highly customizable so that colors, sizes, and hover tooltips can be assigned to the rendered graph. The network graph layout is controlled by a front-end physics engine that is configurable from a Python interface, allowing for the detailed placement of the graph elements. In this paper, we outline use cases for Pyvis with specific examples to highlight key features for any analysis workflow. A brief overview of Pyvis' implementation describes how the Python front-end binding uses simple Pyvis calls.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。