You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4c8e700
Browse filesBrowse the repository at this point in the historyBrowse files
centrality](https://en.wikipedia.org/wiki/Betweenness_centrality) of a node in
356
-
a network is the number of shortest paths between two other members in the
307
+
一个网络中的一个节点的[中介中心性(Betweenness Centrality)](https://en.wikipedia.org/wiki/Betweenness_centrality) 是,the number of shortest paths between two other members in the
357
308
network on which a given node appears. Betweenness centality is an important
358
309
metric because it can be used to identify “brokers of information” in the
359
310
network or nodes that connect disparate clusters.
@@ -405,18 +356,18 @@ from Cypher:
405
356
406
357
```
407
358
408
-
## Closeness centrality
359
+
## 接近中心性(Closeness centrality)
409
360
410
-
[Closeness
411
-
centrality](https://en.wikipedia.org/wiki/Centrality#Closeness_centrality) is
361
+
[接近中心性(Closeness centrality)](https://en.wikipedia.org/wiki/Centrality#Closeness_centrality) is
412
362
the inverse of the average distance to all other characters in the network.
413
363
Nodes with high closeness centality are often highly connected within clusters
414
364
in the graph, but not necessarily highly connected outside of the cluster.
415
365
416
-
**Nodes with
One of the things I love about Neo4j is how well it works with other tools,
460
411
things like R and Python data science tools. We could continue to use apoc to
461
-
run [PageRank](https://neo4j-contrib.github.io/neo4j-apoc-
462
-
procedures/#_pagerank_algorithm) and [community detection](https://neo4j-
463
-
contrib.github.io/neo4j-apoc-procedures/#_graph_algorithms) algorithms, but
412
+
run [PageRank](https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_pagerank_algorithm) and [community detection](https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_graph_algorithms) algorithms, but
464
413
let’s switch to using [python-igraph](http://igraph.org/python/) to calculate
465
414
some analyses. Python-igraph is a port of the R igraph graph analytics
466
415
library. To install, just use `pip install python-igraph`.
467
416
468
-
### Building an igraph instance from Neo4j
417
+
### 从Neo4j构建一个igraph实例
469
418
470
419
To use igraph on our graph of thrones data, the first thing we need to do is
471
420
pull data out of Neo4j and build an igraph instnace in Python. We can do this
@@ -495,8 +444,7 @@ algorithms implemented in igraph.
495
444
The first algorithm we’ll use in igraph is
496
445
[PageRank](https://en.wikipedia.org/wiki/PageRank). PageRank is an algorithm
497
446
originally used by Google to rank the importance of web pages and is a type of
network-analysis/). Neovis.js provides a simple API that allows for
603
+
combines vis.js and the [Neo4j official Javascript driver](http://www.lyonwj.com/2016/06/26/graph-of-thrones-neo4j-social-network-analysis/). Neovis.js provides a simple API that allows for
660
604
configuring the visualization. For example, the following Javascript is all
661
605
that is necessary to produce the visualization above:
662
606
@@ -686,23 +630,21 @@ that is necessary to produce the visualization above:
686
630
viz.render();
687
631
```
688
632
689
-
Note that we have specified:
633
+
请注意,我们已经指定:
690
634
691
-
*We want to include nodes with the label `Character` in the visualization, using the property `name` as their caption
635
+
*在可视化中,我们想要包含带标签`Character`的节点,使用合适的`name`作为其标题
692
636
* Node size should be proportional to the value of their `betweenness` property
693
-
*We want to include `INTERACTS` relationships in the visualization
637
+
*在可视化中,我们想要包含`INTERACTS`关系
694
638
* The thickness of the relationships should be proportional to the value of the `weight` property
695
639
* The nodes should be colored according to the value of the propety `community` which identifies the clusters in the network
696
640
* To pull the data from a Neo4j server on `localhost`
697
641
* To display the visualization in a DOM element with the id `viz`
698
642
699
-
Neovis.js takes care of pulling the data from Neo4j and creating the
700
-
visualization based on our minimal configuration.
643
+
Neovis.js需要从Neo4j拉取数据,并且基于我们的最低配置创建可视化。
701
644
702
-
## Resources
645
+
## 资源
703
646
704
647
* A. Beveridge and J. Shan, [“Network of Thrones”](http://www.maa.org/sites/default/files/pdf/Mathhorizons/NetworkofThrones%20%281%29.pdf) Math Horizons Magazine , Vol. 23, No. 4 (2016), pp. 18-22.
705
648
* J. Kleinberg and D. Easley, [Networks, Crowds, and Markets: Reasoning About a Highly Connected World.](https://www.cs.cornell.edu/home/kleinber/networks-book/) Cambridge University Press (2010)
706
649
707
-
All code is [available on Github.](https://github.com/johnymontana/graph-of-
0 commit comments