python - 如何从 Python/R 中的联系人列表动画网络增长?
问题描述
问题:我想使用 Python 3 动画时间网络的增长,最好是 Jupyter 笔记本中的 networkx 和 matplotlib 等库。但是,我也很感谢用 R 语言提供的任何帮助并解决我的问题。
数据:我有以下形式的联系人列表:contact_list=[(time1,node1,node2),(time2,node1,node3), (time3,node2,node1)...]
在联系人列表中我有 92 个不同节点和大约 4000 个联系人。
现在我想可视化我的网络在一段时间内的增长。
动画:我的动画应该有以下要求:
- 一开始我希望所有节点都出现在屏幕上并且它们之间没有边缘。
对于 contact_list 中的每个 CONTACT:
*change a time count to the time assigned to the CONTACT *highlight with a different color nodes which are assigned to the present CONTACT and draw a new edge if there wasn't any between them before
这是我想获得的动画的示例帧:
预先感谢您的帮助!
解决方案
推荐阅读
- python - Python pandas:将字典转换为 DataFrame,键为行
- stripe-payments - 带运费的 Stripe Session
- sql - 拆分和展开包含一列中连接数据的表
- comments - 如何使用 antlr 4 匹配 EOF 条件
- r - RStudio 和 Google Drive 同步问题:Mark II
- flutter - 在颤振安装中运行 Pub 升级需要太多时间
- python - Tfidftransformer 和 Tfidfvectorizer 有什么区别?
- javascript - Selenium 在下拉列表中访问多个影子 dom 元素?
- reactjs - 如何使用 Firebase Auth API 发送电子邮件验证并在登录前检查用户是否经过验证
- javascript - 在选项中动态添加项目