This repository offers the codes for the following paper,
A flexible PageRank-based graph embedding framework closely related to spectral eigenvector embeddings
The graph embeddings folder hosts the codes for all the experiments on graphs.
- The various graphs used in the paper can be generated by running
diff_graphs.jland the "log PR" graph in the introduction can be obtained by runningintroduction.jl - The distance effect showed in
figure 2in the paper can be generated usingdistance_effect.jl Figures 4-7can be generated usinggraph_embeddings.jl- The error variance table in
figure 8can be generated usingerror_variance.jl
- Primary-school-contact: Raw data was obtained from nveldt/HyperModularity.jl;
read_data.jlwas used to generate theprimary_school.matfile which was used insmalltest.jlto generatefigure9a - Yelp: Instructions in LHQD/yelp were followed to download the data;
read_data.jlandyelp_restaurant_hypergraph.jlwas used to generate the hypergraph and store it atyelp_restaurant_hypergraph.matwhich was used inyelp_experiment.jlto generatefigure 9b - Drug Abuse Network (DAWN): Raw data was obtained from DAWN dataset;
read_data.jlwas used to generate thedawn.matfile which was used insmalltest.jlto generatefigure 10a - Walmart: Raw data was obtained from Walmart-Trips;
read_data.jlwas used to generate thewalmart.matfile which was used inwalmart_experiment.jlto generatefigure 10b - Math Overflow: Raw data was obtained from mathoverflow-answers;
read-data.jlwas used to generate themathoverflow.matfile which was used insmalltest.jlto generatefigure 10c