Code Monkey home page Code Monkey logo

hmg's Introduction

Hiding Secret Messages in Graph Datasets (HMG)

HMG(Hiding Secret Messages in Graph Datasets) is a Python package that presents a collection of steganography and watermarking algorithms for graph datasets.

Algorithms

  • Real-world graphs

    • BIND
    • BYMOND
  • Synthetic graphs

Installation

python setup.py install

Graph Engine

The default graph engine is based on the functionality of networkx. However, we can also use python-igraph instead of networkx.

from hmg.engine import GraphEngine

ge = GraphEngine('networkx')  # Use networkx for creating GraphEngine object.
ge = GraphEngine('igraph')  # Use python-igraph for creating GraphEngine object.

Experiments

1. Basic Experiments

This repository provides some basic experiments for each algorithm in experiments directory.

  • BIND: bind_omnipath.py
  • BYMOND: bymond_ddi.py
  • BYNIS: bynis_powerlaw.py
  • WU2019: wu2019_paper_examples.py
  • WU2020: wu2020_paper_examples.py

2. Experiments for OGB datasets

2.1. Download OGB datasets

To perform the experiments for OGB datasets, we need to install the following packages.

The reason for installing the PyTorch packages is that ogb package depends on these packages. After installing the above packages, install ogb package.

pip install ogb

Now, we can download the datasets using experiments/download_ogb.py. The default download directory is data/ogb.

cd experiments
python download_ogb.py

2.2. Perform Experiments

In experiments directory, execute python (algorithm)_ogb_payload.py. These scripts perform the encoding simulation experiments for all datasets of OGB.

  • BIND: bind_ogb_pyaload.py
  • BYMOND: bymond_ogb_pyaload.py

Citation

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.