Skip to content

Commit 1467bd9

Browse files
author
Mark Needham
committed
closeness
1 parent e3bab91 commit 1467bd9

File tree

3 files changed

+301
-17
lines changed

3 files changed

+301
-17
lines changed

notebooks/BetweennessCentrality.ipynb

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

notebooks/ClosenessCentrality.ipynb

Lines changed: 283 additions & 14 deletions
Large diffs are not rendered by default.

notebooks/scripts/algo.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@ def viz_config(algorithm_name):
3333
}
3434
}
3535
},
36+
"Closeness Centrality": {
37+
"query": "MATCH (p1:Node)-[r:LINK]->(p2:Node) RETURN *",
38+
"labels_json": {
39+
'Node': {
40+
'caption': 'id',
41+
'size': 'centrality'
42+
}
43+
},
44+
"relationships_json": {
45+
'LINK': {
46+
'thickness': 'weight',
47+
'caption': False
48+
}
49+
}
50+
},
3651
"Louvain": {
3752
"query": "MATCH (p1:User)-[r:FRIEND]->(p2:User) RETURN *",
3853
"labels_json": {

0 commit comments

Comments
 (0)