项目作者: suanrong

项目描述 :
这是SDNE(结构深度网络嵌入)的实现
高级语言: Python
项目地址: git://github.com/suanrong/SDNE.git
创建时间: 2016-11-30T09:03:51Z
项目社区:https://github.com/suanrong/SDNE

开源协议:

下载


SDNE

This repository provides a reference implementation of SDNE as described in the paper:

Structural Deep network Embedding.

Daixin Wang, Peng Cui, Wenwu Zhu

Knowledge Discovery and Data Mining, 2016.

The SDNE algorithm learns a representations for nodes in a graph. Please check the paper for more details.

Basic Usage

  1. $ python main.py -c config/xx.ini

noted: your can just checkout and modify config file or main.py to get what you want.

Input

Your input graph data should be a txt file or a mat file and be under GraphData folder

file format

The txt file should be edgelist and the first line should be N , the number of vertexes and E, the number of edges

The mat file should be the adjacent matrix.

you can save your adjacent matrix using the code below

  1. import scipy.io as sio
  2. sio.savemat("xxx.mat", {"graph_sparse":your_adjacent_matrix})

It is recommended to use mat file and save the adjacent matrix in a sparse form.

txt file sample

  1. 5242 14496
  2. 0 1
  3. 0 2
  4. 4 9
  5. ...
  6. 4525 4526

noted: The nodeID start from 0.

noted: The graph should be an undirected graph, so if (I J) exist in the Input file, (J I) should not.

Citing

If you find SDNE useful in your research, we ask that you cite the following paper:

  1. @inproceedings{Wang:2016:SDN:2939672.2939753,
  2. author = {Wang, Daixin and Cui, Peng and Zhu, Wenwu},
  3. title = {Structural Deep Network Embedding},
  4. booktitle = {Proceedings of the 22Nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining},
  5. series = {KDD '16},
  6. year = {2016},
  7. isbn = {978-1-4503-4232-2},
  8. location = {San Francisco, California, USA},
  9. pages = {1225--1234},
  10. numpages = {10},
  11. url = {http://doi.acm.org/10.1145/2939672.2939753},
  12. doi = {10.1145/2939672.2939753},
  13. acmid = {2939753},
  14. publisher = {ACM},
  15. address = {New York, NY, USA},
  16. keywords = {deep learning, network analysis, network embedding},
  17. }