README authors: Bijaya Adhikari, Yao Zhang, and B. Aditya Prakash.
Dated: Januray 17, 2017. 


This is a reference implementation of the sub2vec algorithm described in the following paper.

Bijaya Adhikari, Yao Zhang, Naren Ramakrishnan, and B. Aditya Prakash
Distributed Representation of Subgraphs
arXiv preprint arXiv:1702.06921, 2017


Given a set of subgraphs, sub2vec learns a low dimensional representation for each subgraph.

==========================================================================================================================================================================================

Requirement: networkx (https://networkx.github.io/) and gensim (https://radimrehurek.com/gensim/) python packages


To see a Demo: 
   make demo
   

Execute:
   python src/main.py --input input_dir  --output  output_file

Example: python src/main.py --input input  --output  output


==========================================================================================================================================================================================
Input:

A directory with subgraphs in edgelist files. Each edgelist is in the format:
node_1 node_2
1 2
1 3
3 4

================================================================================================================================================================================================
Output:

output: Each line in output represents low dimensional representation of each subgraph  


================================================================================================================================================================================================
Contact:

If you have any questions about the code, please contact Bijaya Adhikari at bijaya[at]cs[dot]vt[dot]edu 
