-
Notifications
You must be signed in to change notification settings - Fork 327
/
Copy pathdefaults.ts
65 lines (61 loc) · 1.37 KB
/
defaults.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
const defaults = {
neo4j: {
initialQuery: `MATCH (n) WHERE exists(n.pagerank)
WITH (n), RAND() AS random
ORDER BY random LIMIT 3000
OPTIONAL MATCH (n)-[r]-(m)
//WITH n,r,m WHERE exists(n.pagerank) AND exists(m.pagerank) AND exists(m.community)
RETURN n, r, m;`,
neo4jUri: 'bolt://localhost:7687',
neo4jUser: 'neo4j',
neo4jPassword: 'neo4j',
driverConfig: {
encrypted: 'ENCRYPTION_OFF',
trust: 'TRUST_ALL_CERTIFICATES',
maxConnectionPoolSize: 100,
connectionAcquisitionTimeout: 10000,
disableLosslessIntegers: true,
},
groupAsLabel: true
},
visJs: {
nodes: {
font: {
size: 26,
strokeWidth: 7
},
scaling: {}
},
edges: {
arrows: {
to: { enabled: false }
},
length: 200
},
layout: {
improvedLayout: false,
hierarchical: {
enabled: false,
sortMethod: 'hubsize'
}
},
physics: { // TODO: adaptive physics settings based on size of graph rendered
// enabled: true,
// timestep: 0.5,
// stabilization: {
// iterations: 10
// }
adaptiveTimestep: true,
// barnesHut: {
// gravitationalConstant: -8000,
// springConstant: 0.04,
// springLength: 95
// },
stabilization: {
iterations: 200,
fit: true
}
}
}
};
export { defaults };