Git Product home page Git Product logo

community-detection-betweenness's Introduction

community-detection-betweenness

  1. Community Detection in a multiplex network using betweenness centrality

The input graph should contain edge lists for each layer in seperate files and should be 0 indexed.

Compile the file communityDetection.cpp as "g++ communityDetection.cpp" and run as "./communityDetection num_nodes num_layers layer1_path [layer2_path ... ]

The output of this program contains number of communities C on the first line, followed by C lines containing space separated integers with ith line denoting the nodes in the ith community

  1. Other programs for performing analysis,

a) removeDegreeOneNodes.cpp

This program removes degree one nodes from the citation network.

./removeDegreeOneNodes firstLayerPath secondLayerPath

the output files are name firstLayerPath_small.txt and secondLayerPath_small.txt

b) hashGraphs.cpp

This program takes as input all the layers of the graph and outputs 0 indexed graphs, along with the number of nodes in the graph

./hashGraphs firstLayerEdgeListPath [secondLayerEdgeListPath ... ]

the output files are named firstLayerEdgeListPath_ind.txt ...

c) betweennessCentrality.cpp

Outputs the betweennessCentrality using our implementation (variation of brandes) of each node in the graph. Input same as communityDetection.cpp

d) dijkstrabetweenness.cpp

Outputs the betweennessCentrality using betweennessCentrality of each node in the graph. Input same as communityDetection.cpp. Note that it uses boostlibrary to compile

e) modularity.cpp

It calculates modularity of communities in a multilayered graph. 

./modularity <numNodes> <numClusters> <clusterFilePath> <numSlice> <slice1EdgeList> [<slice2EdgeList> ... ]

clusterFile should contain numNodes lines where ith line contains a single integer indicating the cluster to which ith node belongs 

community-detection-betweenness's People

Contributors

sachin19 avatar

Stargazers

 avatar Siddharth Rakesh avatar

Watchers

James Cloos avatar  avatar Siddharth Rakesh avatar

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.