g6/demos/radial-interact-layout.html
2019-07-19 11:16:21 +08:00

3453 lines
73 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div id="mountNode"></div>
<script src="../build/g6.js"></script>
<script src="./assets/d3-4.13.0.min.js"></script>
<script src="../build/radial.js"></script>
<script>
const data_m = {
"nodes": [
{
"id": "5",
"label": 5
}, {
"id": "4",
"label": 4
}, {
"id": "3",
"label": 3
}, {
"id": "2",
"label": 2
}, {
"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"
}]
};
const 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"
}
]
};
const focusNode = data_m.nodes[20];
const mainUnitRadius = 120;
const RadialLayoutPlugin = new Radial({
center: [ 500, 300 ],
maxIteration: 200,
focusNode,
unitRadius: mainUnitRadius,
linkDistance: 230,
nodeSize: 20,
nonOverlap: true
});
G6.registerBehavior('click-add-node', {
getEvents() {
return {
'node:click': 'onClick'
};
},
onClick(ev) {
const itemModel = ev.item.getModel();
clickedNodeId = itemModel.id;
const graph = this.graph;
const nodes = graph.getNodes();
const edges = graph.getEdges();
let newData;
if (itemModel.id == 2) newData = data2_m;
else return;
let newNodeModels = newData.nodes;
let newEdgeModels = [];
// deduplication the items in newEdgeModels
newData.edges.forEach(e => {
let exist = false;
newEdgeModels.forEach(ne => {
if(ne.source === e.source && ne.target === e.target) exist = true;
});
if(!exist) {
newEdgeModels.push(e);
}
});
// for graph.changeData()
let allNodeModels = [], allEdgeModels = [];
// add new nodes to graph
const nodeMap = new Map();
nodes.forEach((n, i)=>{
const nModel = n.getModel();
nodeMap.set(nModel.id, i);
});
newNodeModels.forEach((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;
const node = graph.addItem('node', nodeModel);
}
});
// add new edges to graph
const edgeMap = new Map();
edges.forEach((e, i)=>{
const eModel = e.getModel();
edgeMap.set(eModel.source+","+eModel.target, i);
});
const oldEdgeNum = edges.length;
newEdgeModels.forEach((em, i) => {
const exist = edgeMap.get(em.source+","+em.target);
if (exist === undefined) {
const edge = graph.addItem('edge', em);
edgeMap.set(em.source+","+em.target, oldEdgeNum+i);
}
});
edges.forEach((e, i) => {
allEdgeModels.push(e.getModel());
});
nodes.forEach((n, i) => {
allNodeModels.push(n.getModel());
});
// the max degree about foces(clicked) node in the newly added data
const maxDegree = 4;
// the max degree about foces(clicked) node in the original data
const oMaxDegree = 3;
const unitRadius = 60;
// re-place the clicked node far away the exisiting items
// along the radius from center node to it
const vx = itemModel.x - focusNode.x;
const vy = itemModel.y - focusNode.y;
const vlength = Math.sqrt(vx*vx+vy*vy);
const ideallength = unitRadius * maxDegree + mainUnitRadius * oMaxDegree;
itemModel.x = ideallength * vx / vlength + focusNode.x;
itemModel.y = ideallength * vy / vlength + focusNode.y;
const subRadialLayout = new Radial({
center: [ itemModel.x, itemModel.y ],
maxIteration: 200,
focusNode: itemModel,
unitRadius,
linkDistance: 120,
nodeSize: 20,
nonOverlap: true
});
graph.addPlugin(subRadialLayout);
// only layout the newly added part around the clicked node
subRadialLayout.layout(
{'nodes': newNodeModels,
'edges': newEdgeModels}
);
focusNode = itemModel;
graph.changeData({"nodes": allNodeModels, "edges": allEdgeModels});
}
});
const graph = new G6.Graph({
container: 'mountNode',
width: 1000,
height: 600,
plugins: [ RadialLayoutPlugin ],
modes: {
default: ['drag-node', 'click-select', 'click-add-node', 'drag-canvas']
},
defaultNode: {
size: [20, 20],
color: 'steelblue'
},
defaultEdge: {
size: 1,
color: '#e2e2e2'
},
nodeStyle: {
default: {
lineWidth: 2,
fill: '#fff'
},
selected: {
fill: 'steelblue'
}
},
edgeStyle: {
default: {
endArrow: {
path: 'M 4,0 L -4,-4 L -4,4 Z',
d: 4
}
}
}
});
graph.data({ nodes: data_m.nodes, edges: data_m.edges.map((edge, i) => {
edge.id = 'edge' + i;
return Object.assign({}, edge);
}) });
RadialLayoutPlugin.layout(data_m);
graph.render();
</script>
</body>
</html>