G6
G2
G6
F2
L7
墨者学院
关于 G6
图表示例
API 文档
使用教程
返回旧版
树图
紧凑树
系统树
脑图树
辐射树
树图-边上显示label
文件系统
自定义树图
大数据量的树图
一般图
ER 图
流程图
流程图自定义元素
Force-directed 力导图
Fruchterman 布局参数变化
Dagre 参数变化
Circular 环图参数变化
Radial 布局参数变化
布局数据变化
Radial 交互扩展节点
布局的时机监听
自定义布局 - 二分图
子图布局
其他表达形式
Sankey 桑基图
Arc Diagram 弧线图
Cicular Arc Diagram 环形弧线图
Bubbles 力导气泡
树和气泡
元素
内置边
内置节点
节点-卡片
节点-环形柱状图
节点-面积图
节点-折线图
节点-列表
节点-饼图
节点-标注图
节点-多标签
节点-堆积柱状图
边-贝塞尔曲线
边-内置弧线
边-内置折线
边-自定义折线方法1
边-自定义折线方法2
边-多标签
箭头-内置
箭头-自定义边带有自定义箭头
文本-省略
文本-换行
交互
鼠标事件更新标签
高亮节点
切换节点图片
动态加载数据
动态加载多条数据
Circle节点分组
Rect节点分组
点击扩展节点
动画
状态切换
节点动画
默认动画
自定义动画
辅助工具
Tooltip 节点和边的提示框
Minimap 缩略图
Grid 网格
Edge Bundling 边绑定
Context Menu 右键菜单
响应节点区域事件
点击节点移动到中心
复杂案例
美国航线边绑定
北京地铁
聚类的折叠/扩展交互
自定义资金流转图
Radial 交互扩展节点
源码
复制成功
复制失败
全屏
复制
运行
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Radial 交互扩展节点</title> <style>::-webkit-scrollbar{display:none;}html,body{overflow:hidden;margin:0;}</style> </head> <body> <div id="mountNode"></div> <script>/*Fixing iframe window.innerHeight 0 issue in Safari*/document.body.clientHeight;</script> <script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.g6-3.1.1/build/g6.js"></script> <script> /** * 该示例演示在 Radial 布局中实现点击节点扩展相关点 * by 十吾 */ var descriptionDiv = document.createElement("div"); descriptionDiv.innerHTML = '试一试点击绿色节点'; var graphDiv = document.getElementById("mountNode"); document.body.insertBefore(descriptionDiv, graphDiv); var data_m = { nodes: [{ id: "5", label: 5 }, { id: "4", label: 4 }, { id: "3", label: 3 }, { id: "2", label: 2, style: { fill: "#0a0" } }, { id: "1", label: 1 }, { id: "0", label: "0" }, { id: "40", label: "40" }, { id: "41", label: "41" }, { id: "50", label: "50" }, { id: "9", label: "9" }, { id: "8", label: "8" }, { id: "7", label: "7" }, { id: "6", label: "6" }, { id: "48", label: "48" }, { id: "49", label: "49" }, { id: "46", label: "46" }, { id: "47", label: "47" }, { id: "44", label: 44 }, { id: "45", label: 45 }, { id: "42", label: 42 }, { id: "20", label: 20 }, { id: "10", label: 10 }, { id: "43", label: 43 }, { id: "2001", label: "2001" }, { id: "2002", label: "2002" }, { id: "2003", label: "2003" }, { id: "2004", label: "2004" }], edges: [{ target: "7", edgeType: "Person2Person#Relationship", properties: {}, source: "41", timestamp: 1563120417 }, { target: "0", edgeType: "Person2Person#Guarantee", properties: {}, source: "40", timestamp: 1563120416 }, { target: "9", edgeType: "Person2Person#Benefit", properties: {}, source: "49", timestamp: 1563120424 }, { target: "41", edgeType: "Person2Person#Guarantee", properties: {}, source: "20", timestamp: 1563120401 }, { target: "3", edgeType: "Person2Person#Benefit", properties: {}, source: "45", timestamp: 1563120420 }, { target: "6", edgeType: "Person2Person#Benefit", properties: {}, source: "47", timestamp: 1563120422 }, { target: "0", edgeType: "Person2Person#Benefit", properties: {}, source: "43", timestamp: 1563120418 }, { target: "8", edgeType: "Person2Person#Guarantee", properties: {}, source: "45", timestamp: 1563120420 }, { target: "2", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "45", timestamp: 1563120420 }, { target: "5", edgeType: "Person2Person#Guarantee", properties: {}, source: "43", timestamp: 1563120419 }, { target: "10", edgeType: "Person2Person#Guarantee", properties: {}, source: "45", timestamp: 1563120420 }, { target: "3", edgeType: "Person2Person#Relationship", properties: {}, source: "49", timestamp: 1563120423 }, { target: "8", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "49", timestamp: 1563120423 }, { target: "0", edgeType: "Person2Person#Relationship", properties: {}, source: "47", timestamp: 1563120421 }, { target: "5", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "47", timestamp: 1563120422 }, { target: "10", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "49", timestamp: 1563120424 }, { target: "47", edgeType: "Person2Person#Relationship", properties: {}, source: "20", timestamp: 1563120402 }, { target: "6", edgeType: "Person2Person#Relationship", properties: {}, source: "40", timestamp: 1563120417 }, { target: "2", edgeType: "Person2Person#Guarantee", properties: {}, source: "41", timestamp: 1563120417 }, { target: "9", edgeType: "Person2Person#Relationship", properties: {}, source: "42", timestamp: 1563120418 }, { target: "0", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "44", timestamp: 1563120419 }, { target: "8", edgeType: "Person2Person#Benefit", properties: {}, source: "48", timestamp: 1563120423 }, { target: "5", edgeType: "Person2Person#Benefit", properties: {}, source: "46", timestamp: 1563120421 }, { target: "2", edgeType: "Person2Person#Benefit", properties: {}, source: "44", timestamp: 1563120419 }, { target: "10", edgeType: "Person2Person#Relationship", properties: {}, source: "42", timestamp: 1563120418 }, { target: "7", edgeType: "Person2Person#Guarantee", properties: {}, source: "44", timestamp: 1563120420 }, { target: "3", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "46", timestamp: 1563120421 }, { target: "4", edgeType: "Person2Person#Guarantee", properties: {}, source: "42", timestamp: 1563120418 }, { target: "6", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "48", timestamp: 1563120422 }, { target: "2", edgeType: "Person2Person#Relationship", properties: {}, source: "48", timestamp: 1563120422 }, { target: "8", edgeType: "Person2Person#Relationship", properties: {}, source: "41", timestamp: 1563120417 }, { target: "1", edgeType: "Person2Person#Guarantee", properties: {}, source: "40", timestamp: 1563120416 }, { target: "0", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "43", timestamp: 1563120418 }, { target: "8", edgeType: "Person2Person#Benefit", properties: {}, source: "49", timestamp: 1563120423 }, { target: "5", edgeType: "Person2Person#Benefit", properties: {}, source: "47", timestamp: 1563120422 }, { target: "42", edgeType: "Person2Person#Guarantee", properties: {}, source: "20", timestamp: 1563120401 }, { target: "9", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "49", timestamp: 1563120424 }, { target: "2", edgeType: "Person2Person#Benefit", properties: {}, source: "45", timestamp: 1563120420 }, { target: "6", edgeType: "Person2Person#Guarantee", properties: {}, source: "43", timestamp: 1563120419 }, { target: "9", edgeType: "Person2Person#Guarantee", properties: {}, source: "45", timestamp: 1563120420 }, { target: "3", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "45", timestamp: 1563120420 }, { target: "3", edgeType: "Person2Person#Guarantee", properties: {}, source: "41", timestamp: 1563120417 }, { target: "4", edgeType: "Person2Person#Relationship", properties: {}, source: "49", timestamp: 1563120423 }, { target: "6", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "47", timestamp: 1563120422 }, { target: "1", edgeType: "Person2Person#Relationship", properties: {}, source: "47", timestamp: 1563120421 }, { target: "48", edgeType: "Person2Person#Relationship", properties: {}, source: "20", timestamp: 1563120402 }, { target: "7", edgeType: "Person2Person#Relationship", properties: {}, source: "40", timestamp: 1563120417 }, { target: "10", edgeType: "Person2Person#Benefit", properties: {}, source: "48", timestamp: 1563120423 }, { target: "7", edgeType: "Person2Person#Benefit", properties: {}, source: "48", timestamp: 1563120422 }, { target: "4", edgeType: "Person2Person#Benefit", properties: {}, source: "46", timestamp: 1563120421 }, { target: "1", edgeType: "Person2Person#Benefit", properties: {}, source: "44", timestamp: 1563120419 }, { target: "1", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "44", timestamp: 1563120419 }, { target: "10", edgeType: "Person2Person#Guarantee", properties: {}, source: "46", timestamp: 1563120421 }, { target: "5", edgeType: "Person2Person#Guarantee", properties: {}, source: "42", timestamp: 1563120418 }, { target: "8", edgeType: "Person2Person#Guarantee", properties: {}, source: "44", timestamp: 1563120420 }, { target: "3", edgeType: "Person2Person#Relationship", properties: {}, source: "48", timestamp: 1563120422 }, { target: "4", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "46", timestamp: 1563120421 }, { target: "7", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "48", timestamp: 1563120422 }, { target: "10", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "48", timestamp: 1563120423 }, { target: "0", edgeType: "Person2Person#Relationship", properties: {}, source: "46", timestamp: 1563120421 }, { target: "2", edgeType: "Person2Person#Guarantee", properties: {}, source: "40", timestamp: 1563120416 }, { target: "0", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "45", timestamp: 1563120420 }, { target: "9", edgeType: "Person2Person#Relationship", properties: {}, source: "41", timestamp: 1563120417 }, { target: "7", edgeType: "Person2Person#Benefit", properties: {}, source: "49", timestamp: 1563120423 }, { target: "4", edgeType: "Person2Person#Benefit", properties: {}, source: "47", timestamp: 1563120421 }, { target: "43", edgeType: "Person2Person#Guarantee", properties: {}, source: "20", timestamp: 1563120401 }, { target: "10", edgeType: "Person2Person#Relationship", properties: {}, source: "43", timestamp: 1563120419 }, { target: "1", edgeType: "Person2Person#Benefit", properties: {}, source: "45", timestamp: 1563120420 }, { target: "3", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "47", timestamp: 1563120421 }, { target: "5", edgeType: "Person2Person#Relationship", properties: {}, source: "49", timestamp: 1563120423 }, { target: "4", edgeType: "Person2Person#Guarantee", properties: {}, source: "41", timestamp: 1563120417 }, { target: "6", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "49", timestamp: 1563120423 }, { target: "2", edgeType: "Person2Person#Relationship", properties: {}, source: "47", timestamp: 1563120421 }, { target: "7", edgeType: "Person2Person#Guarantee", properties: {}, source: "43", timestamp: 1563120419 }, { target: "0", edgeType: "Person2Person#Guarantee", properties: {}, source: "49", timestamp: 1563120423 }, { target: "8", edgeType: "Person2Person#Relationship", properties: {}, source: "40", timestamp: 1563120417 }, { target: "6", edgeType: "Person2Person#Benefit", properties: {}, source: "48", timestamp: 1563120422 }, { target: "3", edgeType: "Person2Person#Benefit", properties: {}, source: "46", timestamp: 1563120421 }, { target: "0", edgeType: "Person2Person#Benefit", properties: {}, source: "44", timestamp: 1563120419 }, { target: "49", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "20", timestamp: 1563120402 }, { target: "1", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "46", timestamp: 1563120421 }, { target: "6", edgeType: "Person2Person#Guarantee", properties: {}, source: "42", timestamp: 1563120418 }, { target: "3", edgeType: "Person2Person#Guarantee", properties: {}, source: "40", timestamp: 1563120416 }, { target: "9", edgeType: "Person2Person#Guarantee", properties: {}, source: "44", timestamp: 1563120420 }, { target: "4", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "48", timestamp: 1563120422 }, { target: "4", edgeType: "Person2Person#Relationship", properties: {}, source: "48", timestamp: 1563120422 }, { target: "49", edgeType: "Person2Person#Relationship", properties: {}, source: "20", timestamp: 1563120402 }, { target: "1", edgeType: "Person2Person#Relationship", properties: {}, source: "46", timestamp: 1563120421 }, { target: "8", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "40", timestamp: 1563120417 }, { target: "10", edgeType: "Person2Person#Benefit", properties: {}, source: "49", timestamp: 1563120424 }, { target: "44", edgeType: "Person2Person#Guarantee", properties: {}, source: "20", timestamp: 1563120401 }, { target: "6", edgeType: "Person2Person#Benefit", properties: {}, source: "49", timestamp: 1563120423 }, { target: "0", edgeType: "Person2Person#Benefit", properties: {}, source: "45", timestamp: 1563120420 }, { target: "3", edgeType: "Person2Person#Benefit", properties: {}, source: "47", timestamp: 1563120421 }, { target: "1", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "45", timestamp: 1563120420 }, { target: "5", edgeType: "Person2Person#Guarantee", properties: {}, source: "41", timestamp: 1563120417 }, { target: "10", edgeType: "Person2Person#Guarantee", properties: {}, source: "47", timestamp: 1563120422 }, { target: "3", edgeType: "Person2Person#Relationship", properties: {}, source: "47", timestamp: 1563120421 }, { target: "6", edgeType: "Person2Person#Relationship", properties: {}, source: "49", timestamp: 1563120423 }, { target: "4", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "47", timestamp: 1563120421 }, { target: "8", edgeType: "Person2Person#Guarantee", properties: {}, source: "43", timestamp: 1563120419 }, { target: "0", edgeType: "Person2Person#Relationship", properties: {}, source: "45", timestamp: 1563120420 }, { target: "7", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "49", timestamp: 1563120423 }, { target: "1", edgeType: "Person2Person#Guarantee", properties: {}, source: "49", timestamp: 1563120423 }, { target: "9", edgeType: "Person2Person#Benefit", properties: {}, source: "40", timestamp: 1563120417 }, { target: "9", edgeType: "Person2Person#Relationship", properties: {}, source: "40", timestamp: 1563120417 }, { target: "5", edgeType: "Person2Person#Benefit", properties: {}, source: "48", timestamp: 1563120422 }, { target: "10", edgeType: "Person2Person#Relationship", properties: {}, source: "44", timestamp: 1563120420 }, { target: "2", edgeType: "Person2Person#Benefit", properties: {}, source: "46", timestamp: 1563120421 }, { target: "5", edgeType: "Person2Person#Relationship", properties: {}, source: "48", timestamp: 1563120422 }, { target: "2", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "46", timestamp: 1563120421 }, { target: "2", edgeType: "Person2Person#Relationship", properties: {}, source: "46", timestamp: 1563120421 }, { target: "5", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "48", timestamp: 1563120422 }, { target: "4", edgeType: "Person2Person#Guarantee", properties: {}, source: "40", timestamp: 1563120416 }, { target: "9", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "40", timestamp: 1563120417 }, { target: "7", edgeType: "Person2Person#Guarantee", properties: {}, source: "42", timestamp: 1563120418 }, { target: "10", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "46", timestamp: 1563120421 }, { target: "6", edgeType: "Person2Person#Relationship", properties: {}, source: "43", timestamp: 1563120419 }, { target: "0", edgeType: "Person2Person#Guarantee", properties: {}, source: "48", timestamp: 1563120422 }, { target: "9", edgeType: "Person2Person#Relationship", properties: {}, source: "45", timestamp: 1563120420 }, { target: "45", edgeType: "Person2Person#Guarantee", properties: {}, source: "20", timestamp: 1563120401 }, { target: "7", edgeType: "Person2Person#Benefit", properties: {}, source: "45", timestamp: 1563120420 }, { target: "4", edgeType: "Person2Person#Benefit", properties: {}, source: "43", timestamp: 1563120419 }, { target: "9", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "47", timestamp: 1563120422 }, { target: "3", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "43", timestamp: 1563120419 }, { target: "1", edgeType: "Person2Person#Benefit", properties: {}, source: "41", timestamp: 1563120417 }, { target: "0", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "41", timestamp: 1563120417 }, { target: "6", edgeType: "Person2Person#Guarantee", properties: {}, source: "41", timestamp: 1563120417 }, { target: "6", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "45", timestamp: 1563120420 }, { target: "9", edgeType: "Person2Person#Guarantee", properties: {}, source: "43", timestamp: 1563120419 }, { target: "3", edgeType: "Person2Person#Relationship", properties: {}, source: "41", timestamp: 1563120417 }, { target: "2", edgeType: "Person2Person#Guarantee", properties: {}, source: "49", timestamp: 1563120423 }, { target: "5", edgeType: "Person2Person#Relationship", properties: {}, source: "42", timestamp: 1563120418 }, { target: "43", edgeType: "Person2Person#Relationship", properties: {}, source: "20", timestamp: 1563120401 }, { target: "8", edgeType: "Person2Person#Relationship", properties: {}, source: "44", timestamp: 1563120420 }, { target: "9", edgeType: "Person2Person#Benefit", properties: {}, source: "46", timestamp: 1563120421 }, { target: "10", edgeType: "Person2Person#Benefit", properties: {}, source: "46", timestamp: 1563120421 }, { target: "3", edgeType: "Person2Person#Benefit", properties: {}, source: "42", timestamp: 1563120418 }, { target: "6", edgeType: "Person2Person#Benefit", properties: {}, source: "44", timestamp: 1563120419 }, { target: "4", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "44", timestamp: 1563120419 }, { target: "0", edgeType: "Person2Person#Benefit", properties: {}, source: "40", timestamp: 1563120416 }, { target: "1", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "42", timestamp: 1563120418 }, { target: "5", edgeType: "Person2Person#Guarantee", properties: {}, source: "40", timestamp: 1563120416 }, { target: "41", edgeType: "Person2Person#Benefit", properties: {}, source: "20", timestamp: 1563120401 }, { target: "7", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "46", timestamp: 1563120421 }, { target: "8", edgeType: "Person2Person#Guarantee", properties: {}, source: "42", timestamp: 1563120418 }, { target: "10", edgeType: "Person2Person#Guarantee", properties: {}, source: "48", timestamp: 1563120423 }, { target: "2", edgeType: "Person2Person#Relationship", properties: {}, source: "40", timestamp: 1563120416 }, { target: "1", edgeType: "Person2Person#Guarantee", properties: {}, source: "48", timestamp: 1563120422 }, { target: "7", edgeType: "Person2Person#Relationship", properties: {}, source: "43", timestamp: 1563120419 }, { target: "9", edgeType: "Person2Person#Benefit", properties: {}, source: "47", timestamp: 1563120422 }, { target: "46", edgeType: "Person2Person#Guarantee", properties: {}, source: "20", timestamp: 1563120402 }, { target: "3", edgeType: "Person2Person#Benefit", properties: {}, source: "43", timestamp: 1563120419 }, { target: "6", edgeType: "Person2Person#Benefit", properties: {}, source: "45", timestamp: 1563120420 }, { target: "10", edgeType: "Person2Person#Benefit", properties: {}, source: "45", timestamp: 1563120420 }, { target: "4", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "43", timestamp: 1563120419 }, { target: "0", edgeType: "Person2Person#Benefit", properties: {}, source: "41", timestamp: 1563120417 }, { target: "1", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "41", timestamp: 1563120417 }, { target: "4", edgeType: "Person2Person#Relationship", properties: {}, source: "41", timestamp: 1563120417 }, { target: "7", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "45", timestamp: 1563120420 }, { target: "7", edgeType: "Person2Person#Guarantee", properties: {}, source: "41", timestamp: 1563120417 }, { target: "0", edgeType: "Person2Person#Relationship", properties: {}, source: "49", timestamp: 1563120423 }, { target: "3", edgeType: "Person2Person#Guarantee", properties: {}, source: "49", timestamp: 1563120423 }, { target: "9", edgeType: "Person2Person#Relationship", properties: {}, source: "44", timestamp: 1563120420 }, { target: "6", edgeType: "Person2Person#Relationship", properties: {}, source: "42", timestamp: 1563120418 }, { target: "44", edgeType: "Person2Person#Relationship", properties: {}, source: "20", timestamp: 1563120401 }, { target: "0", edgeType: "Person2Person#Guarantee", properties: {}, source: "47", timestamp: 1563120421 }, { target: "40", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "20", timestamp: 1563120401 }, { target: "8", edgeType: "Person2Person#Benefit", properties: {}, source: "46", timestamp: 1563120421 }, { target: "2", edgeType: "Person2Person#Benefit", properties: {}, source: "42", timestamp: 1563120418 }, { target: "5", edgeType: "Person2Person#Benefit", properties: {}, source: "44", timestamp: 1563120419 }, { target: "10", edgeType: "Person2Person#Relationship", properties: {}, source: "40", timestamp: 1563120417 }, { target: "2", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "42", timestamp: 1563120418 }, { target: "47", edgeType: "Person2Person#Guarantee", properties: {}, source: "20", timestamp: 1563120402 }, { target: "5", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "44", timestamp: 1563120419 }, { target: "3", edgeType: "Person2Person#Relationship", properties: {}, source: "40", timestamp: 1563120416 }, { target: "9", edgeType: "Person2Person#Guarantee", properties: {}, source: "42", timestamp: 1563120418 }, { target: "6", edgeType: "Person2Person#Guarantee", properties: {}, source: "40", timestamp: 1563120417 }, { target: "8", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "46", timestamp: 1563120421 }, { target: "40", edgeType: "Person2Person#Benefit", properties: {}, source: "20", timestamp: 1563120401 }, { target: "2", edgeType: "Person2Person#Guarantee", properties: {}, source: "48", timestamp: 1563120422 }, { target: "5", edgeType: "Person2Person#Relationship", properties: {}, source: "41", timestamp: 1563120417 }, { target: "8", edgeType: "Person2Person#Relationship", properties: {}, source: "43", timestamp: 1563120419 }, { target: "10", edgeType: "Person2Person#Benefit", properties: {}, source: "47", timestamp: 1563120422 }, { target: "8", edgeType: "Person2Person#Benefit", properties: {}, source: "47", timestamp: 1563120422 }, { target: "5", edgeType: "Person2Person#Benefit", properties: {}, source: "45", timestamp: 1563120420 }, { target: "2", edgeType: "Person2Person#Benefit", properties: {}, source: "43", timestamp: 1563120418 }, { target: "1", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "43", timestamp: 1563120418 }, { target: "4", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "45", timestamp: 1563120420 }, { target: "1", edgeType: "Person2Person#Relationship", properties: {}, source: "49", timestamp: 1563120423 }, { target: "50", edgeType: "Person2Person#Benefit", properties: {}, source: "20", timestamp: 1563120402 }, { target: "7", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "47", timestamp: 1563120422 }, { target: "8", edgeType: "Person2Person#Guarantee", properties: {}, source: "41", timestamp: 1563120417 }, { target: "10", edgeType: "Person2Person#Guarantee", properties: {}, source: "49", timestamp: 1563120424 }, { target: "1", edgeType: "Person2Person#Guarantee", properties: {}, source: "47", timestamp: 1563120421 }, { target: "4", edgeType: "Person2Person#Guarantee", properties: {}, source: "49", timestamp: 1563120423 }, { target: "7", edgeType: "Person2Person#Relationship", properties: {}, source: "42", timestamp: 1563120418 }, { target: "45", edgeType: "Person2Person#Relationship", properties: {}, source: "20", timestamp: 1563120401 }, { target: "7", edgeType: "Person2Person#Benefit", properties: {}, source: "46", timestamp: 1563120421 }, { target: "4", edgeType: "Person2Person#Benefit", properties: {}, source: "44", timestamp: 1563120419 }, { target: "1", edgeType: "Person2Person#Benefit", properties: {}, source: "42", timestamp: 1563120418 }, { target: "48", edgeType: "Person2Person#Guarantee", properties: {}, source: "20", timestamp: 1563120402 }, { target: "2", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "44", timestamp: 1563120419 }, { target: "5", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "46", timestamp: 1563120421 }, { target: "4", edgeType: "Person2Person#Relationship", properties: {}, source: "40", timestamp: 1563120416 }, { target: "8", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "48", timestamp: 1563120423 }, { target: "7", edgeType: "Person2Person#Guarantee", properties: {}, source: "40", timestamp: 1563120417 }, { target: "0", edgeType: "Person2Person#Relationship", properties: {}, source: "48", timestamp: 1563120422 }, { target: "9", edgeType: "Person2Person#Relationship", properties: {}, source: "43", timestamp: 1563120419 }, { target: "0", edgeType: "Person2Person#Guarantee", properties: {}, source: "46", timestamp: 1563120421 }, { target: "6", edgeType: "Person2Person#Relationship", properties: {}, source: "41", timestamp: 1563120417 }, { target: "3", edgeType: "Person2Person#Guarantee", properties: {}, source: "48", timestamp: 1563120422 }, { target: "50", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "20", timestamp: 1563120402 }, { target: "7", edgeType: "Person2Person#Benefit", properties: {}, source: "47", timestamp: 1563120422 }, { target: "4", edgeType: "Person2Person#Benefit", properties: {}, source: "45", timestamp: 1563120420 }, { target: "1", edgeType: "Person2Person#Benefit", properties: {}, source: "43", timestamp: 1563120418 }, { target: "10", edgeType: "Person2Person#Relationship", properties: {}, source: "41", timestamp: 1563120418 }, { target: "2", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "43", timestamp: 1563120418 }, { target: "5", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "45", timestamp: 1563120420 }, { target: "9", edgeType: "Person2Person#Guarantee", properties: {}, source: "41", timestamp: 1563120418 }, { target: "2", edgeType: "Person2Person#Relationship", properties: {}, source: "49", timestamp: 1563120423 }, { target: "8", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "47", timestamp: 1563120422 }, { target: "5", edgeType: "Person2Person#Guarantee", properties: {}, source: "49", timestamp: 1563120423 }, { target: "2", edgeType: "Person2Person#Guarantee", properties: {}, source: "47", timestamp: 1563120421 }, { target: "8", edgeType: "Person2Person#Relationship", properties: {}, source: "42", timestamp: 1563120418 }, { target: "10", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "47", timestamp: 1563120422 }, { target: "5", edgeType: "Person2Person#Relationship", properties: {}, source: "40", timestamp: 1563120416 }, { target: "46", edgeType: "Person2Person#Relationship", properties: {}, source: "20", timestamp: 1563120402 }, { target: "9", edgeType: "Person2Person#Benefit", properties: {}, source: "48", timestamp: 1563120423 }, { target: "3", edgeType: "Person2Person#Benefit", properties: {}, source: "44", timestamp: 1563120419 }, { target: "6", edgeType: "Person2Person#Benefit", properties: {}, source: "46", timestamp: 1563120421 }, { target: "9", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "48", timestamp: 1563120423 }, { target: "0", edgeType: "Person2Person#Benefit", properties: {}, source: "42", timestamp: 1563120418 }, { target: "3", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "44", timestamp: 1563120419 }, { target: "0", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "42", timestamp: 1563120418 }, { target: "49", edgeType: "Person2Person#Guarantee", properties: {}, source: "20", timestamp: 1563120402 }, { target: "8", edgeType: "Person2Person#Guarantee", properties: {}, source: "40", timestamp: 1563120417 }, { target: "1", edgeType: "Person2Person#Relationship", properties: {}, source: "48", timestamp: 1563120422 }, { target: "6", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "46", timestamp: 1563120421 }, { target: "1", edgeType: "Person2Person#Guarantee", properties: {}, source: "46", timestamp: 1563120421 }, { target: "4", edgeType: "Person2Person#Guarantee", properties: {}, source: "48", timestamp: 1563120422 }, { target: "0", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "49", timestamp: 1563120423 }, { target: "8", edgeType: "Person2Person#Relationship", properties: {}, source: "47", timestamp: 1563120422 }, { target: "5", edgeType: "Person2Person#Benefit", properties: {}, source: "41", timestamp: 1563120417 }, { target: "50", edgeType: "Person2Person#Relationship", properties: {}, source: "20", timestamp: 1563120402 }, { target: "8", edgeType: "Person2Person#Benefit", properties: {}, source: "43", timestamp: 1563120419 }, { target: "10", edgeType: "Person2Person#Benefit", properties: {}, source: "43", timestamp: 1563120419 }, { target: "7", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "43", timestamp: 1563120419 }, { target: "4", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "41", timestamp: 1563120417 }, { target: "1", edgeType: "Person2Person#Benefit", properties: {}, source: "49", timestamp: 1563120423 }, { target: "10", edgeType: "Person2Person#Relationship", properties: {}, source: "47", timestamp: 1563120422 }, { target: "2", edgeType: "Person2Person#Relationship", properties: {}, source: "43", timestamp: 1563120418 }, { target: "5", edgeType: "Person2Person#Relationship", properties: {}, source: "45", timestamp: 1563120420 }, { target: "6", edgeType: "Person2Person#Guarantee", properties: {}, source: "49", timestamp: 1563120423 }, { target: "0", edgeType: "Person2Person#Guarantee", properties: {}, source: "45", timestamp: 1563120420 }, { target: "3", edgeType: "Person2Person#Guarantee", properties: {}, source: "47", timestamp: 1563120421 }, { target: "7", edgeType: "Person2Person#Relationship", properties: {}, source: "46", timestamp: 1563120421 }, { target: "4", edgeType: "Person2Person#Benefit", properties: {}, source: "40", timestamp: 1563120416 }, { target: "7", edgeType: "Person2Person#Benefit", properties: {}, source: "42", timestamp: 1563120418 }, { target: "43", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "20", timestamp: 1563120401 }, { target: "8", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "44", timestamp: 1563120420 }, { target: "5", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "42", timestamp: 1563120418 }, { target: "0", edgeType: "Person2Person#Benefit", properties: {}, source: "48", timestamp: 1563120422 }, { target: "2", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "40", timestamp: 1563120416 }, { target: "45", edgeType: "Person2Person#Benefit", properties: {}, source: "20", timestamp: 1563120401 }, { target: "4", edgeType: "Person2Person#Relationship", properties: {}, source: "44", timestamp: 1563120419 }, { target: "9", edgeType: "Person2Person#Guarantee", properties: {}, source: "40", timestamp: 1563120417 }, { target: "10", edgeType: "Person2Person#Guarantee", properties: {}, source: "40", timestamp: 1563120417 }, { target: "5", edgeType: "Person2Person#Guarantee", properties: {}, source: "48", timestamp: 1563120422 }, { target: "1", edgeType: "Person2Person#Relationship", properties: {}, source: "42", timestamp: 1563120418 }, { target: "2", edgeType: "Person2Person#Guarantee", properties: {}, source: "46", timestamp: 1563120421 }, { target: "6", edgeType: "Person2Person#Relationship", properties: {}, source: "45", timestamp: 1563120420 }, { target: "1", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "49", timestamp: 1563120423 }, { target: "9", edgeType: "Person2Person#Relationship", properties: {}, source: "47", timestamp: 1563120422 }, { target: "4", edgeType: "Person2Person#Benefit", properties: {}, source: "41", timestamp: 1563120417 }, { target: "7", edgeType: "Person2Person#Benefit", properties: {}, source: "43", timestamp: 1563120419 }, { target: "5", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "41", timestamp: 1563120417 }, { target: "0", edgeType: "Person2Person#Benefit", properties: {}, source: "49", timestamp: 1563120423 }, { target: "0", edgeType: "Person2Person#Relationship", properties: {}, source: "41", timestamp: 1563120417 }, { target: "3", edgeType: "Person2Person#Relationship", properties: {}, source: "43", timestamp: 1563120419 }, { target: "7", edgeType: "Person2Person#Guarantee", properties: {}, source: "49", timestamp: 1563120423 }, { target: "8", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "43", timestamp: 1563120419 }, { target: "1", edgeType: "Person2Person#Guarantee", properties: {}, source: "45", timestamp: 1563120420 }, { target: "10", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "43", timestamp: 1563120419 }, { target: "4", edgeType: "Person2Person#Guarantee", properties: {}, source: "47", timestamp: 1563120421 }, { target: "8", edgeType: "Person2Person#Relationship", properties: {}, source: "46", timestamp: 1563120421 }, { target: "6", edgeType: "Person2Person#Benefit", properties: {}, source: "42", timestamp: 1563120418 }, { target: "40", edgeType: "Person2Person#Relationship", properties: {}, source: "20", timestamp: 1563120401 }, { target: "3", edgeType: "Person2Person#Benefit", properties: {}, source: "40", timestamp: 1563120416 }, { target: "9", edgeType: "Person2Person#Benefit", properties: {}, source: "44", timestamp: 1563120420 }, { target: "44", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "20", timestamp: 1563120401 }, { target: "6", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "42", timestamp: 1563120418 }, { target: "9", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "44", timestamp: 1563120420 }, { target: "3", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "40", timestamp: 1563120416 }, { target: "10", edgeType: "Person2Person#Relationship", properties: {}, source: "48", timestamp: 1563120423 }, { target: "44", edgeType: "Person2Person#Benefit", properties: {}, source: "20", timestamp: 1563120401 }, { target: "5", edgeType: "Person2Person#Relationship", properties: {}, source: "44", timestamp: 1563120419 }, { target: "2", edgeType: "Person2Person#Relationship", properties: {}, source: "42", timestamp: 1563120418 }, { target: "6", edgeType: "Person2Person#Guarantee", properties: {}, source: "48", timestamp: 1563120422 }, { target: "0", edgeType: "Person2Person#Guarantee", properties: {}, source: "44", timestamp: 1563120419 }, { target: "3", edgeType: "Person2Person#Guarantee", properties: {}, source: "46", timestamp: 1563120421 }, { target: "7", edgeType: "Person2Person#Relationship", properties: {}, source: "45", timestamp: 1563120420 }, { target: "6", edgeType: "Person2Person#Benefit", properties: {}, source: "43", timestamp: 1563120419 }, { target: "3", edgeType: "Person2Person#Benefit", properties: {}, source: "41", timestamp: 1563120417 }, { target: "9", edgeType: "Person2Person#Benefit", properties: {}, source: "45", timestamp: 1563120420 }, { target: "5", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "43", timestamp: 1563120419 }, { target: "2", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "41", timestamp: 1563120417 }, { target: "4", edgeType: "Person2Person#Relationship", properties: {}, source: "43", timestamp: 1563120419 }, { target: "10", edgeType: "Person2Person#Guarantee", properties: {}, source: "41", timestamp: 1563120418 }, { target: "5", edgeType: "Person2Person#Guarantee", properties: {}, source: "47", timestamp: 1563120422 }, { target: "8", edgeType: "Person2Person#Guarantee", properties: {}, source: "49", timestamp: 1563120423 }, { target: "8", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "45", timestamp: 1563120420 }, { target: "1", edgeType: "Person2Person#Relationship", properties: {}, source: "41", timestamp: 1563120417 }, { target: "10", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "45", timestamp: 1563120420 }, { target: "2", edgeType: "Person2Person#Guarantee", properties: {}, source: "45", timestamp: 1563120420 }, { target: "6", edgeType: "Person2Person#Relationship", properties: {}, source: "44", timestamp: 1563120419 }, { target: "9", edgeType: "Person2Person#Relationship", properties: {}, source: "46", timestamp: 1563120421 }, { target: "41", edgeType: "Person2Person#Relationship", properties: {}, source: "20", timestamp: 1563120401 }, { target: "2", edgeType: "Person2Person#Benefit", properties: {}, source: "40", timestamp: 1563120416 }, { target: "8", edgeType: "Person2Person#Benefit", properties: {}, source: "44", timestamp: 1563120420 }, { target: "41", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "20", timestamp: 1563120401 }, { target: "5", edgeType: "Person2Person#Benefit", properties: {}, source: "42", timestamp: 1563120418 }, { target: "9", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "46", timestamp: 1563120421 }, { target: "3", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "42", timestamp: 1563120418 }, { target: "0", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "40", timestamp: 1563120416 }, { target: "0", edgeType: "Person2Person#Relationship", properties: {}, source: "40", timestamp: 1563120416 }, { target: "43", edgeType: "Person2Person#Benefit", properties: {}, source: "20", timestamp: 1563120401 }, { target: "7", edgeType: "Person2Person#Guarantee", properties: {}, source: "48", timestamp: 1563120422 }, { target: "6", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "44", timestamp: 1563120419 }, { target: "4", edgeType: "Person2Person#Guarantee", properties: {}, source: "46", timestamp: 1563120421 }, { target: "3", edgeType: "Person2Person#Relationship", properties: {}, source: "42", timestamp: 1563120418 }, { target: "10", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "44", timestamp: 1563120420 }, { target: "1", edgeType: "Person2Person#Guarantee", properties: {}, source: "44", timestamp: 1563120419 }, { target: "5", edgeType: "Person2Person#Relationship", properties: {}, source: "43", timestamp: 1563120419 }, { target: "8", edgeType: "Person2Person#Relationship", properties: {}, source: "45", timestamp: 1563120420 }, { target: "8", edgeType: "Person2Person#Benefit", properties: {}, source: "45", timestamp: 1563120420 }, { target: "2", edgeType: "Person2Person#Benefit", properties: {}, source: "41", timestamp: 1563120417 }, { target: "5", edgeType: "Person2Person#Benefit", properties: {}, source: "43", timestamp: 1563120419 }, { target: "9", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "45", timestamp: 1563120420 }, { target: "6", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "43", timestamp: 1563120419 }, { target: "3", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "41", timestamp: 1563120417 }, { target: "10", edgeType: "Person2Person#Relationship", properties: {}, source: "49", timestamp: 1563120424 }, { target: "9", edgeType: "Person2Person#Guarantee", properties: {}, source: "49", timestamp: 1563120424 }, { target: "2", edgeType: "Person2Person#Relationship", properties: {}, source: "41", timestamp: 1563120417 }, { target: "6", edgeType: "Person2Person#Guarantee", properties: {}, source: "47", timestamp: 1563120422 }, { target: "3", edgeType: "Person2Person#Guarantee", properties: {}, source: "45", timestamp: 1563120420 }, { target: "7", edgeType: "Person2Person#Relationship", properties: {}, source: "44", timestamp: 1563120419 }, { target: "42", edgeType: "Person2Person#Relationship", properties: {}, source: "20", timestamp: 1563120401 }, { target: "0", edgeType: "Person2Person#Guarantee", properties: {}, source: "43", timestamp: 1563120418 }, { target: "7", edgeType: "Person2Person#Benefit", properties: {}, source: "44", timestamp: 1563120420 }, { target: "42", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "20", timestamp: 1563120401 }, { target: "4", edgeType: "Person2Person#Benefit", properties: {}, source: "42", timestamp: 1563120418 }, { target: "10", edgeType: "Person2Person#Benefit", properties: {}, source: "44", timestamp: 1563120420 }, { target: "4", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "42", timestamp: 1563120418 }, { target: "1", edgeType: "Person2Person#Benefit", properties: {}, source: "40", timestamp: 1563120416 }, { target: "1", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "40", timestamp: 1563120416 }, { target: "8", edgeType: "Person2Person#Guarantee", properties: {}, source: "48", timestamp: 1563120423 }, { target: "5", edgeType: "Person2Person#Guarantee", properties: {}, source: "46", timestamp: 1563120421 }, { target: "4", edgeType: "Person2Person#Relationship", properties: {}, source: "42", timestamp: 1563120418 }, { target: "42", edgeType: "Person2Person#Benefit", properties: {}, source: "20", timestamp: 1563120401 }, { target: "10", edgeType: "Person2Person#Guarantee", properties: {}, source: "42", timestamp: 1563120418 }, { target: "1", edgeType: "Person2Person#Relationship", properties: {}, source: "40", timestamp: 1563120416 }, { target: "7", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "44", timestamp: 1563120420 }, { target: "2", edgeType: "Person2Person#Guarantee", properties: {}, source: "44", timestamp: 1563120419 }, { target: "9", edgeType: "Person2Person#Benefit", properties: {}, source: "41", timestamp: 1563120418 }, { target: "1", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "47", timestamp: 1563120421 }, { target: "7", edgeType: "Person2Person#Relationship", properties: {}, source: "49", timestamp: 1563120423 }, { target: "5", edgeType: "Person2Person#Benefit", properties: {}, source: "49", timestamp: 1563120423 }, { target: "2", edgeType: "Person2Person#Benefit", properties: {}, source: "47", timestamp: 1563120421 }, { target: "4", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "49", timestamp: 1563120423 }, { target: "4", edgeType: "Person2Person#Relationship", properties: {}, source: "47", timestamp: 1563120421 }, { target: "4", edgeType: "Person2Person#Guarantee", properties: {}, source: "45", timestamp: 1563120420 }, { target: "8", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "41", timestamp: 1563120417 }, { target: "7", edgeType: "Person2Person#Guarantee", properties: {}, source: "47", timestamp: 1563120422 }, { target: "1", edgeType: "Person2Person#Relationship", properties: {}, source: "45", timestamp: 1563120420 }, { target: "49", edgeType: "Person2Person#Benefit", properties: {}, source: "20", timestamp: 1563120402 }, { target: "1", edgeType: "Person2Person#Guarantee", properties: {}, source: "43", timestamp: 1563120418 }, { target: "8", edgeType: "Person2Person#Benefit", properties: {}, source: "40", timestamp: 1563120417 }, { target: "4", edgeType: "Person2Person#Benefit", properties: {}, source: "48", timestamp: 1563120422 }, { target: "1", edgeType: "Person2Person#Benefit", properties: {}, source: "46", timestamp: 1563120421 }, { target: "6", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "40", timestamp: 1563120417 }, { target: "47", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "20", timestamp: 1563120402 }, { target: "3", edgeType: "Person2Person#Relationship", properties: {}, source: "46", timestamp: 1563120421 }, { target: "2", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "48", timestamp: 1563120422 }, { target: "6", edgeType: "Person2Person#Relationship", properties: {}, source: "48", timestamp: 1563120422 }, { target: "9", edgeType: "Person2Person#Guarantee", properties: {}, source: "48", timestamp: 1563120423 }, { target: "9", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "42", timestamp: 1563120418 }, { target: "0", edgeType: "Person2Person#Relationship", properties: {}, source: "44", timestamp: 1563120419 }, { target: "6", edgeType: "Person2Person#Guarantee", properties: {}, source: "46", timestamp: 1563120421 }, { target: "3", edgeType: "Person2Person#Guarantee", properties: {}, source: "44", timestamp: 1563120419 }, { target: "0", edgeType: "Person2Person#Guarantee", properties: {}, source: "42", timestamp: 1563120418 }, { target: "8", edgeType: "Person2Person#Relationship", properties: {}, source: "49", timestamp: 1563120423 }, { target: "8", edgeType: "Person2Person#Benefit", properties: {}, source: "41", timestamp: 1563120417 }, { target: "4", edgeType: "Person2Person#Benefit", properties: {}, source: "49", timestamp: 1563120423 }, { target: "10", edgeType: "Person2Person#Relationship", properties: {}, source: "45", timestamp: 1563120420 }, { target: "1", edgeType: "Person2Person#Benefit", properties: {}, source: "47", timestamp: 1563120421 }, { target: "2", edgeType: "Person2Person#Relationship", properties: {}, source: "45", timestamp: 1563120420 }, { target: "2", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "47", timestamp: 1563120421 }, { target: "5", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "49", timestamp: 1563120423 }, { target: "8", edgeType: "Person2Person#Guarantee", properties: {}, source: "47", timestamp: 1563120422 }, { target: "5", edgeType: "Person2Person#Relationship", properties: {}, source: "47", timestamp: 1563120422 }, { target: "9", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "41", timestamp: 1563120418 }, { target: "10", edgeType: "Person2Person#Guarantee", properties: {}, source: "43", timestamp: 1563120419 }, { target: "5", edgeType: "Person2Person#Guarantee", properties: {}, source: "45", timestamp: 1563120420 }, { target: "2", edgeType: "Person2Person#Guarantee", properties: {}, source: "43", timestamp: 1563120419 }, { target: "48", edgeType: "Person2Person#Benefit", properties: {}, source: "20", timestamp: 1563120402 }, { target: "7", edgeType: "Person2Person#Relationship", properties: {}, source: "48", timestamp: 1563120422 }, { target: "0", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "46", timestamp: 1563120421 }, { target: "7", edgeType: "Person2Person#Benefit", properties: {}, source: "40", timestamp: 1563120417 }, { target: "50", edgeType: "Person2Person#Guarantee", properties: {}, source: "20", timestamp: 1563120402 }, { target: "10", edgeType: "Person2Person#Benefit", properties: {}, source: "40", timestamp: 1563120417 }, { target: "3", edgeType: "Person2Person#Benefit", properties: {}, source: "48", timestamp: 1563120422 }, { target: "0", edgeType: "Person2Person#Benefit", properties: {}, source: "46", timestamp: 1563120421 }, { target: "48", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "20", timestamp: 1563120402 }, { target: "3", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "48", timestamp: 1563120422 }, { target: "4", edgeType: "Person2Person#Relationship", properties: {}, source: "46", timestamp: 1563120421 }, { target: "10", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "40", timestamp: 1563120417 }, { target: "4", edgeType: "Person2Person#Guarantee", properties: {}, source: "44", timestamp: 1563120419 }, { target: "7", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "40", timestamp: 1563120417 }, { target: "7", edgeType: "Person2Person#Guarantee", properties: {}, source: "46", timestamp: 1563120421 }, { target: "1", edgeType: "Person2Person#Relationship", properties: {}, source: "44", timestamp: 1563120419 }, { target: "10", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "42", timestamp: 1563120418 }, { target: "9", edgeType: "Person2Person#Relationship", properties: {}, source: "49", timestamp: 1563120423 }, { target: "1", edgeType: "Person2Person#Guarantee", properties: {}, source: "42", timestamp: 1563120418 }, { target: "6", edgeType: "Person2Person#Relationship", properties: {}, source: "47", timestamp: 1563120422 }, { target: "7", edgeType: "Person2Person#Benefit", properties: {}, source: "41", timestamp: 1563120417 }, { target: "6", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "41", timestamp: 1563120417 }, { target: "3", edgeType: "Person2Person#Benefit", properties: {}, source: "49", timestamp: 1563120423 }, { target: "0", edgeType: "Person2Person#Benefit", properties: {}, source: "47", timestamp: 1563120421 }, { target: "9", edgeType: "Person2Person#Guarantee", properties: {}, source: "47", timestamp: 1563120422 }, { target: "0", edgeType: "Person2Person#Relationship", properties: {}, source: "43", timestamp: 1563120418 }, { target: "3", edgeType: "Person2Person#Relationship", properties: {}, source: "45", timestamp: 1563120420 }, { target: "2", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "49", timestamp: 1563120423 }, { target: "3", edgeType: "Person2Person#Guarantee", properties: {}, source: "43", timestamp: 1563120419 }, { target: "9", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "43", timestamp: 1563120419 }, { target: "6", edgeType: "Person2Person#Guarantee", properties: {}, source: "45", timestamp: 1563120420 }, { target: "8", edgeType: "Person2Person#Relationship", properties: {}, source: "48", timestamp: 1563120423 }, { target: "0", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "48", timestamp: 1563120422 }, { target: "47", edgeType: "Person2Person#Benefit", properties: {}, source: "20", timestamp: 1563120402 }, { target: "0", edgeType: "Person2Person#Guarantee", properties: {}, source: "41", timestamp: 1563120417 }, { target: "9", edgeType: "Person2Person#Benefit", properties: {}, source: "42", timestamp: 1563120418 }, { target: "6", edgeType: "Person2Person#Benefit", properties: {}, source: "40", timestamp: 1563120417 }, { target: "10", edgeType: "Person2Person#Benefit", properties: {}, source: "42", timestamp: 1563120418 }, { target: "7", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "42", timestamp: 1563120418 }, { target: "45", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "20", timestamp: 1563120401 }, { target: "2", edgeType: "Person2Person#Benefit", properties: {}, source: "48", timestamp: 1563120422 }, { target: "4", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "40", timestamp: 1563120416 }, { target: "10", edgeType: "Person2Person#Relationship", properties: {}, source: "46", timestamp: 1563120421 }, { target: "2", edgeType: "Person2Person#Relationship", properties: {}, source: "44", timestamp: 1563120419 }, { target: "8", edgeType: "Person2Person#Guarantee", properties: {}, source: "46", timestamp: 1563120421 }, { target: "5", edgeType: "Person2Person#Relationship", properties: {}, source: "46", timestamp: 1563120421 }, { target: "5", edgeType: "Person2Person#Guarantee", properties: {}, source: "44", timestamp: 1563120419 }, { target: "10", edgeType: "Person2Person#Guarantee", properties: {}, source: "44", timestamp: 1563120420 }, { target: "2", edgeType: "Person2Person#Guarantee", properties: {}, source: "42", timestamp: 1563120418 }, { target: "7", edgeType: "Person2Person#Relationship", properties: {}, source: "47", timestamp: 1563120422 }, { target: "0", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "47", timestamp: 1563120421 }, { target: "9", edgeType: "Person2Person#Benefit", properties: {}, source: "43", timestamp: 1563120419 }, { target: "10", edgeType: "Person2Person#Benefit", properties: {}, source: "41", timestamp: 1563120418 }, { target: "40", edgeType: "Person2Person#Guarantee", properties: {}, source: "20", timestamp: 1563120401 }, { target: "6", edgeType: "Person2Person#Benefit", properties: {}, source: "41", timestamp: 1563120417 }, { target: "7", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "41", timestamp: 1563120417 }, { target: "2", edgeType: "Person2Person#Benefit", properties: {}, source: "49", timestamp: 1563120423 }, { target: "1", edgeType: "Person2Person#Relationship", properties: {}, source: "43", timestamp: 1563120418 }, { target: "4", edgeType: "Person2Person#Guarantee", properties: {}, source: "43", timestamp: 1563120419 }, { target: "4", edgeType: "Person2Person#Relationship", properties: {}, source: "45", timestamp: 1563120420 }, { target: "3", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "49", timestamp: 1563120423 }, { target: "10", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "41", timestamp: 1563120418 }, { target: "7", edgeType: "Person2Person#Guarantee", properties: {}, source: "45", timestamp: 1563120420 }, { target: "1", edgeType: "Person2Person#Guarantee", properties: {}, source: "41", timestamp: 1563120417 }, { target: "6", edgeType: "Person2Person#Relationship", properties: {}, source: "46", timestamp: 1563120421 }, { target: "9", edgeType: "Person2Person#Relationship", properties: {}, source: "48", timestamp: 1563120423 }, { target: "1", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "48", timestamp: 1563120422 }, { target: "46", edgeType: "Person2Person#Benefit", properties: {}, source: "20", timestamp: 1563120402 }, { target: "5", edgeType: "Person2Person#Benefit", properties: {}, source: "40", timestamp: 1563120416 }, { target: "8", edgeType: "Person2Person#Benefit", properties: {}, source: "42", timestamp: 1563120418 }, { target: "1", edgeType: "Person2Person#Benefit", properties: {}, source: "48", timestamp: 1563120422 }, { target: "46", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "20", timestamp: 1563120402 }, { target: "5", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "40", timestamp: 1563120416 }, { target: "9", edgeType: "Person2Person#Guarantee", properties: {}, source: "46", timestamp: 1563120421 }, { target: "0", edgeType: "Person2Person#Relationship", properties: {}, source: "42", timestamp: 1563120418 }, { target: "3", edgeType: "Person2Person#Relationship", properties: {}, source: "44", timestamp: 1563120419 }, { target: "3", edgeType: "Person2Person#Guarantee", properties: {}, source: "42", timestamp: 1563120418 }, { target: "6", edgeType: "Person2Person#Guarantee", properties: {}, source: "44", timestamp: 1563120419 }, { target: "8", edgeType: "Person2Person#Co_Borrower", properties: {}, source: "42", timestamp: 1563120418 }, { target: "41", source: "42" }, { target: "2001", source: "0" }, { target: "2001", source: "1" }, { target: "2001", source: "3" }, { target: "2002", source: "0" }, { target: "2002", source: "1" }, { target: "2002", source: "3" }, { target: "2003", source: "0" }, { target: "2003", source: "1" }, { target: "2003", source: "3" }, { target: "2004", source: "0" }, { target: "2004", source: "1" }, { target: "2004", source: "3" }] }; var data2_m = { nodes: [{ id: "2", label: "2" }, { id: "1001", label: "1001" }, { id: "1002", label: "1002" }, { id: "1003", label: "1003" }, { id: "1004", label: "1004" }, { id: "1005", label: "1005" }, { id: "1006", label: "1006" }, { id: "1007", label: "1007" }, { id: "1008", label: "1008" }, { id: "1009", label: "1009" }, { id: "1010", label: "1010" }, { id: "1011", label: "1011" }, { id: "1012", label: "1012" }, { id: "1013", label: "1013" }, { id: "1014", label: "1014" }, { id: "1015", label: "1015" }, { id: "1016", label: "1016" }, { id: "1017", label: "1017" }, { id: "1018", label: "1018" }, { id: "1019", label: "1019" }, { id: "1020", label: "1020" }, { id: "5", label: "5" }, { id: "41", label: "41" }], edges: [{ source: "2", target: "1001" }, { source: "2", target: "1002" }, { source: "2", target: "1003" }, { source: "2", target: "1004" }, { source: "2", target: "1005" }, { source: "1001", target: "1006" }, { source: "1001", target: "1007" }, { source: "1001", target: "1008" }, { source: "1001", target: "1009" }, { source: "1001", target: "1010" }, { source: "1002", target: "1006" }, { source: "1002", target: "1007" }, { source: "1002", target: "1008" }, { source: "1002", target: "1009" }, { source: "1002", target: "1010" }, { source: "1003", target: "1006" }, { source: "1003", target: "1007" }, { source: "1003", target: "1008" }, { source: "1003", target: "1009" }, { source: "1003", target: "1010" }, { source: "1010", target: "1011" }, { source: "1010", target: "1012" }, { source: "1010", target: "1013" }, { source: "1010", target: "1014" }, { source: "1010", target: "1015" }, { source: "1010", target: "1016" }, { source: "1010", target: "1017" }, { source: "1008", target: "1014" }, { source: "1008", target: "1015" }, { source: "1008", target: "1016" }, { source: "1008", target: "1017" }, { source: "1017", target: "1018" }, { source: "1017", target: "1019" }, { source: "1016", target: "1020" }, { source: "1016", target: "1020" }, { source: "5", target: "1020" }, { source: "41", target: "1020" }, { source: "5", target: "1009" }, { source: "41", target: "1009" }] }; G6.registerBehavior('click-add-node', { getEvents: function getEvents() { return { 'node:click': 'onClick' }; }, onClick: function onClick(ev) { var itemModel = ev.item.getModel(); clickedNodeId = itemModel.id; var graph = this.graph; var nodes = graph.getNodes(); var edges = graph.getEdges(); var newData = void 0; if (itemModel.id == 2) newData = data2_m; else return; var newNodeModels = newData.nodes; var newEdgeModels = []; // deduplication the items in newEdgeModels newData.edges.forEach(function(e) { var exist = false; newEdgeModels.forEach(function(ne) { if (ne.source === e.source && ne.target === e.target) exist = true; }); if (!exist) { newEdgeModels.push(e); } }); // for graph.changeData() var allNodeModels = [], allEdgeModels = []; // add new nodes to graph var nodeMap = new Map(); nodes.forEach(function(n, i) { var nModel = n.getModel(); nodeMap.set(nModel.id, i); }); newNodeModels.forEach(function(nodeModel, i) { if (nodeMap.get(nodeModel.id) === undefined) { // set the initial positions of the new nodes to the focus(clicked) node nodeModel.x = itemModel.x; nodeModel.y = itemModel.y; var node = graph.addItem('node', nodeModel); } }); // add new edges to graph var edgeMap = new Map(); edges.forEach(function(e, i) { var eModel = e.getModel(); edgeMap.set(eModel.source + "," + eModel.target, i); }); var oldEdgeNum = edges.length; newEdgeModels.forEach(function(em, i) { var exist = edgeMap.get(em.source + "," + em.target); if (exist === undefined) { var edge = graph.addItem('edge', em); edgeMap.set(em.source + "," + em.target, oldEdgeNum + i); } }); edges.forEach(function(e, i) { allEdgeModels.push(e.getModel()); }); nodes.forEach(function(n, i) { allNodeModels.push(n.getModel()); }); // the max degree about foces(clicked) node in the newly added data var maxDegree = 4; // the max degree about foces(clicked) node in the original data var oMaxDegree = 3; var unitRadius = 40; var focusNodeId = "2"; // re-place the clicked node far away the exisiting items // along the radius from center node to it var vx = itemModel.x - focusNode.x; var vy = itemModel.y - focusNode.y; var vlength = Math.sqrt(vx * vx + vy * vy); var ideallength = unitRadius * maxDegree + mainUnitRadius * oMaxDegree; itemModel.x = ideallength * vx / vlength + focusNode.x; itemModel.y = ideallength * vy / vlength + focusNode.y; var subRadialLayout = new G6.Layout['radial']({ center: [itemModel.x, itemModel.y], maxIteration: 200, focusNode: "2", unitRadius: unitRadius, linkDistance: 180, preventOverlap: true }); subRadialLayout.init({ 'nodes': newNodeModels, 'edges': newEdgeModels }); subRadialLayout.execute(); graph.positionsAnimate(); graph.data({ nodes: allNodeModels, edges: allEdgeModels }); } }); var focusNode = data_m.nodes[20]; var mainUnitRadius = 80; var graph = new G6.Graph({ container: 'mountNode', width: window.innerWidth, height: window.innerHeight, layout: { type: 'radial', center: [100, 100], maxIteration: 200, focusNode: focusNode, unitRadius: mainUnitRadius, linkDistance: 100, preventOverlap: true, nodeSize: 20 }, animate: true, modes: { default: ['drag-node', 'click-select', 'click-add-node', 'drag-canvas'] }, defaultNode: { size: [20, 20] }, defaultEdge: { size: 1, color: '#e2e2e2' } }); graph.data({ nodes: data_m.nodes, edges: data_m.edges.map(function(edge, i) { edge.id = 'edge' + i; return Object.assign({}, edge); }) }); graph.render(); </script></body> </html>