Skip to content

Bonus assignment for the course **Algorithms and Data Structures** *Department of Management Science and Technology*, Athens University of Economics and Business.

Notifications You must be signed in to change notification settings

stathoula/Gelling-and-Melting-Large-Graphs-by-Edge-Manipulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gelling, and Melting, Large Graphs by Edge Manipulation

This is an algorithm which is about K-EdgeDeletion και K-EdgeAddition. Is written in Python 3.X and is based on the article Hanghang Tong, B. Aditya Prakash, Tina Eliassi-Rad, Michalis Faloutsos, and Christos Faloutsos. 2012. Gelling, and melting, large graphs by edge manipulation. In Proceedings of the 21st ACM international conference on Information and knowledge management (CIKM '12). ACM, New York, NY, USA, 245-254.

You can find the article here.

This work was given as a bonus project from Panos Louridas in course Algorithms and Data Structures (Department of Forest Science and Technology, Athens University of Economics and Business). You can find the assignment here.

To run the program:

python gelling_melting.py [-h] [-g] [-d] [-s SEPARATOR] [-f] graph num_edges

  • positional arguments:

    • graph graph file
    • num_edges number of edges to delete / add
  • optional arguments:

    • -h, --help show this help message and exit
    • -g, --gell gell graph
    • -d, --directed directed graph
    • -s, --separator SEPARATOR
    • -f, --figure draw the graph before and after the k-edge deletion / addition

Example: For the file graph.txt python gelling_melting.py graph.txt 2 -g -s -f: the output is:

((1, 7), 0.14202618512757398)
((1, 4), 0.14202618512757384)

which mean that we added the edge 1-7 and 1-4

  • The algorithm also works for big graphs. Specifically, it should be able to produce results for the newest AS Graph Data Set (not directed, see here for information), as well as for a subset of the Facebook graph (not directed, see here for information), or the Twitter graph (directed, information here). For example, on an Ocean Machine with 2 CPUs and 4 GB of RAM, less than 6 seconds are required for the Facebook graph and less than 1.5 minutes for the Twitter graph to identify 10 links to delete.

About

Bonus assignment for the course **Algorithms and Data Structures** *Department of Management Science and Technology*, Athens University of Economics and Business.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages