Code Monkey home page Code Monkey logo

songgraph's Introduction

SongGraph

Code for these two following papers. If this code is useful for you, please cite these two papers:

Liu Q., Wang Q., Chen W. (2018) An Analysis of Xi Feng Parties in the Northern Song Dynasty Through Complex Network Algorithms. International Conference on Image Processing, Computing and Big Data. IPCBD 2018. (EI, Oral)

Liu Q., Wang Q., Chen W., Kawahara D. (2019) A Community Detection Method Towards Analysis of Xi Feng Parties in the Northern Song Dynasty. The 33rd Pacific Asia Conference on Language, Information and Computation. PACLIC 33, 2019. (Oral)

  • 1 BFS

Starting with Wang Anshi, get 921 people in total

  • 2 PAGERANK

921 people for the interaction ranking

top 30:

1762   王安石   0.04708529887271933
1384   歐陽修   0.030292377751571772
3767   蘇軾   0.026758936706645833
1488   司馬光   0.020996924210053194
1845   王珪   0.012231558811702885
1649   蔡京   0.011519353890680983
7111   黃庭堅   0.011333650099415752
1493   蘇轍   0.01081898612838382
217   張方平   0.009769056562293094
333   章惇   0.009720560035146602
13378   鄭獬   0.009115790413355881
7364   曾鞏   0.008319483659257124
1324   呂陶   0.00830705005667022
7026   范祖禹   0.008101573715013069
559   范純仁   0.008097043845931665
3580   劉敞   0.007570529935858861
8043   范仲淹   0.0075261104011653725
1220   劉攽   0.007481588212572202
1417   畢仲游   0.007226871912988288
630   韓琦   0.006330698784369454
8116   蘇頌   0.00624615199817485
1953   文彥博   0.00614069809622224
1309   呂惠卿   0.0055144262476013485
628   富弼   0.005401619790580067
12988   楊傑   0.005204564176009759
1314   呂公著   0.005130335675912437
1707   曾布   0.0050777425494128595
12157   劉弇   0.004455161251056696
1760   王安禮   0.004327581241377693
3279   范鎮   0.004127533267011255

921 people for the politics ranking

top 30:

1762   王安石   0.053950394082145296
1384   歐陽修   0.04361285962154966
3767   蘇軾   0.03801070080798791
1488   司馬光   0.0247013750138106
7111   黃庭堅   0.016790002897808142
1649   蔡京   0.012126410013634282
1493   蘇轍   0.011868059259206388
217   張方平   0.01177754517480781
1845   王珪   0.01169851584836717
7364   曾鞏   0.009890430423129539
8043   范仲淹   0.00982573350697229
559   范純仁   0.009678454792133612
1324   呂陶   0.009614936641632177
333   章惇   0.009280747261469973
13378   鄭獬   0.009083299201019104
7026   范祖禹   0.008914187344313778
630   韓琦   0.008299076058557234
1220   劉攽   0.007665939525695324
1417   畢仲游   0.007497746905726632
3580   劉敞   0.007312157926394814
1953   文彥博   0.006210611600841365
8116   蘇頌   0.005909805891793419
3279   范鎮   0.005716158049361261
13   晁補之   0.00564807732291511
628   富弼   0.005616858474810685
1309   呂惠卿   0.005446449177455396
12988   楊傑   0.005306720390167566
1651   蔡襄   0.005144338751793412
1314   呂公著   0.005075029615453478
3043   秦觀   0.0047047218903072206

896 people for the positive politics ranking

top 30:

1762   王安石   0.053516849899642706
1384   歐陽修   0.045166811778745604
3767   蘇軾   0.043383881796153836
1488   司馬光   0.024096772553529548
7111   黃庭堅   0.021479564318752756
1845   王珪   0.012160710570245674
1493   蘇轍   0.012128511693473228
217   張方平   0.011114714148073865
7364   曾鞏   0.010907116296724684
8043   范仲淹   0.010396705687781576
559   范純仁   0.0099047052144559
1324   呂陶   0.00983536664586351
13378   鄭獬   0.009551620601186429
1417   畢仲游   0.00911977984439086
7026   范祖禹   0.008793836604234025
1220   劉攽   0.007982833543916674
3580   劉敞   0.007013788334600185
630   韓琦   0.006755996547534512
13   晁補之   0.006710929611365319
8116   蘇頌   0.005674377728172184
12988   楊傑   0.005603716767466818
3043   秦觀   0.005592977783603643
3279   范鎮   0.0055803654630553635
1651   蔡襄   0.005483925384984307
3762   蘇洵   0.00525526496192638
1649   蔡京   0.0051881044710396455
1953   文彥博   0.005143491109310615
13460   華鎮   0.004629238044366196
1314   呂公著   0.004581501617872869
3404   胡瑗   0.004530583514111245
  • 3 community detection

Use asyn_lpa_communities(), split into 5 communities and manually sort into 2 parties

influence caculated from the politic influence:

0.19563569399999997 for 541 people in A
0.121498075 for 380 people in B
  • 4 可视化(二期开放预订中)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.