GithubHelp home page GithubHelp logo

sraashis / graph-de-anonymization Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 13.37 MB

Seed based and seed-free graph de-anonymization.

License: MIT License

Jupyter Notebook 84.56% Python 15.14% Shell 0.30%
graph-de-anonymization seed-free seed-based

graph-de-anonymization's Introduction

Implementation is available in the link Github Link Report is here

Install libraries:

  • pip install -U numpy networkx tqdm torch pandas scikit-learn matplotlib

Final results are in the output folder

Project No. 1:

This is the implementation of graph de-anonymization in two ways:

  • Seed Based
    • It includes iterative seed propagation technique by matching multi-hop neighborhood structure
  • Seed Free
    • It includes multi-hop density matching to extract confident seed and use the previous seed propagation algorithm.

Usage for seed-based

- python seed_based_main.py -nw 32 -g1 seedbased/G1.edgelist -g2 seedbased/G2.edgelist -sm seedbased/seed_node_pairs.txt -out seedbased/seed_based_result.txt
  -nw NUM_WORKERS, --num_workers Number of workers/processes.
  -g1 G1_EDGELIST_FILE, --g1_edgelist_file, Path to g1 edgelist.
  -g2 G2_EDGELIST_FILE, --g2_edgelist_file, Path to g2 edgelist.
  -sm SEED_MAPPING_FILE, --seed_mapping_file, Path to g1->g2 seed nodes mapping.
  -out OUTPUT_FILE, --output_file,  Path to output file.
  -mpi MAP_PER_ITR, --map_per_itr, Number of nodes to map on each global iteration

Usage for seed-free

- python seed_free_main.py -nw 32 -g1 seedfree/G1.edgelist -g2 seedfree/G2.edgelist -out seedfree/seed_free_result.txt

 -nw NUM_WORKERS, --num_workers, Number of workers/processes.
 -g1 G1_EDGELIST_FILE, --g1_edgelist_file, Path to g1 edgelist.
 -g2 G2_EDGELIST_FILE, --g2_edgelist_file, Path to g2 edgelist.
 -sin SEED_INIT_NUM, --seed_init_num, Number of seed mappings to extract.
 -out OUTPUT_FILE, --output_file,  Path to output file.
 -mpi MAP_PER_ITR, --map_per_itr, Number of nodes to map on each global iteration

Full pipeline run

chmod x+u jobs.sh
./jobs.sh

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.