199 lines
5.6 KiB
JavaScript
199 lines
5.6 KiB
JavaScript
|
|
const NODES = [
|
|
{
|
|
"id": "https://examples.eze2e.com/login/cookie/login.php",
|
|
"label": "/login/cookie/login.php",
|
|
"baseColor": "#cc5500",
|
|
"fullUrl": "https://examples.eze2e.com/login/cookie/login.php",
|
|
"cluster": "login",
|
|
"types": [
|
|
"flow",
|
|
"page",
|
|
"form"
|
|
]
|
|
},
|
|
{
|
|
"id": "https://examples.eze2e.com/login/cookie/index.php",
|
|
"label": "/login/cookie/index.php",
|
|
"baseColor": "#00aa44",
|
|
"fullUrl": "https://examples.eze2e.com/login/cookie/index.php",
|
|
"cluster": "login",
|
|
"types": [
|
|
"flow",
|
|
"page",
|
|
"link"
|
|
]
|
|
},
|
|
{
|
|
"id": "https://examples.eze2e.com/login/cookie/weather.php",
|
|
"label": "/login/cookie/weather.php",
|
|
"baseColor": "#00aa44",
|
|
"fullUrl": "https://examples.eze2e.com/login/cookie/weather.php",
|
|
"cluster": "login",
|
|
"types": [
|
|
"flow",
|
|
"link",
|
|
"page"
|
|
]
|
|
},
|
|
{
|
|
"id": "https://examples.eze2e.com/login/cookie/logout.php",
|
|
"label": "/login/cookie/logout.php",
|
|
"baseColor": "#00aa44",
|
|
"fullUrl": "https://examples.eze2e.com/login/cookie/logout.php",
|
|
"cluster": "login",
|
|
"types": [
|
|
"flow",
|
|
"link",
|
|
"page"
|
|
]
|
|
},
|
|
{
|
|
"id": "https://examples.eze2e.com/login/cookie/index.php#",
|
|
"label": "/login/cookie/index.php",
|
|
"baseColor": "#00aa44",
|
|
"fullUrl": "https://examples.eze2e.com/login/cookie/index.php#",
|
|
"cluster": "login",
|
|
"types": [
|
|
"link"
|
|
]
|
|
},
|
|
{
|
|
"id": "https://examples.eze2e.com/login/cookie/weather.php#",
|
|
"label": "/login/cookie/weather.php",
|
|
"baseColor": "#00aa44",
|
|
"fullUrl": "https://examples.eze2e.com/login/cookie/weather.php#",
|
|
"cluster": "login",
|
|
"types": [
|
|
"link"
|
|
]
|
|
}
|
|
];
|
|
const EDGES = [
|
|
{
|
|
"id": "e0",
|
|
"from": "https://examples.eze2e.com/login/cookie/login.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/index.php",
|
|
"type": "flow"
|
|
},
|
|
{
|
|
"id": "e1",
|
|
"from": "https://examples.eze2e.com/login/cookie/login.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/index.php",
|
|
"type": "flow"
|
|
},
|
|
{
|
|
"id": "e2",
|
|
"from": "https://examples.eze2e.com/login/cookie/index.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/weather.php",
|
|
"type": "flow"
|
|
},
|
|
{
|
|
"id": "e3",
|
|
"from": "https://examples.eze2e.com/login/cookie/login.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/index.php",
|
|
"type": "flow"
|
|
},
|
|
{
|
|
"id": "e4",
|
|
"from": "https://examples.eze2e.com/login/cookie/index.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/weather.php",
|
|
"type": "flow"
|
|
},
|
|
{
|
|
"id": "e5",
|
|
"from": "https://examples.eze2e.com/login/cookie/weather.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/logout.php",
|
|
"type": "flow"
|
|
},
|
|
{
|
|
"id": "e6",
|
|
"from": "https://examples.eze2e.com/login/cookie/login.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/index.php#",
|
|
"type": "link"
|
|
},
|
|
{
|
|
"id": "e7",
|
|
"from": "https://examples.eze2e.com/login/cookie/login.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/weather.php",
|
|
"type": "link"
|
|
},
|
|
{
|
|
"id": "e8",
|
|
"from": "https://examples.eze2e.com/login/cookie/login.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/logout.php",
|
|
"type": "link"
|
|
},
|
|
{
|
|
"id": "e9",
|
|
"from": "https://examples.eze2e.com/login/cookie/index.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/index.php#",
|
|
"type": "link"
|
|
},
|
|
{
|
|
"id": "e10",
|
|
"from": "https://examples.eze2e.com/login/cookie/index.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/weather.php",
|
|
"type": "link"
|
|
},
|
|
{
|
|
"id": "e11",
|
|
"from": "https://examples.eze2e.com/login/cookie/index.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/logout.php",
|
|
"type": "link"
|
|
},
|
|
{
|
|
"id": "e12",
|
|
"from": "https://examples.eze2e.com/login/cookie/weather.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/index.php",
|
|
"type": "link"
|
|
},
|
|
{
|
|
"id": "e13",
|
|
"from": "https://examples.eze2e.com/login/cookie/weather.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/weather.php#",
|
|
"type": "link"
|
|
},
|
|
{
|
|
"id": "e14",
|
|
"from": "https://examples.eze2e.com/login/cookie/weather.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/logout.php",
|
|
"type": "link"
|
|
},
|
|
{
|
|
"id": "e15",
|
|
"from": "https://examples.eze2e.com/login/cookie/logout.php",
|
|
"to": "https://examples.eze2e.com/login/cookie/login.php",
|
|
"type": "form"
|
|
}
|
|
];
|
|
const DEAD_ENDS = [
|
|
"https://examples.eze2e.com/login/cookie/index.php#",
|
|
"https://examples.eze2e.com/login/cookie/weather.php#"
|
|
];
|
|
const PAGE_RANK = {
|
|
"https://examples.eze2e.com/login/cookie/login.php": 0.1007271871669504,
|
|
"https://examples.eze2e.com/login/cookie/index.php": 0.08544952643888591,
|
|
"https://examples.eze2e.com/login/cookie/weather.php": 0.08287660481566009,
|
|
"https://examples.eze2e.com/login/cookie/logout.php": 0.08904887919093986,
|
|
"https://examples.eze2e.com/login/cookie/index.php#": 0.05380999851672653,
|
|
"https://examples.eze2e.com/login/cookie/weather.php#": 0.04261944033710667
|
|
};
|
|
const CYCLES = [
|
|
[
|
|
"https://examples.eze2e.com/login/cookie/login.php",
|
|
"https://examples.eze2e.com/login/cookie/index.php",
|
|
"https://examples.eze2e.com/login/cookie/weather.php",
|
|
"https://examples.eze2e.com/login/cookie/logout.php"
|
|
],
|
|
[
|
|
"https://examples.eze2e.com/login/cookie/index.php",
|
|
"https://examples.eze2e.com/login/cookie/weather.php"
|
|
]
|
|
];
|
|
const CYCLES_SET = new Set(CYCLES.flat());
|
|
const TOP_RANK_THRESHOLD = 0.1007271871669504;
|
|
const BROKEN_LINKS = [];
|
|
const NODE_INFO = {};
|
|
NODES.forEach(n => NODE_INFO[n.id] = n);
|