GithubHelp home page GithubHelp logo

supernode's Introduction

SuperNode

Reduce the size of your network from N nodes to S super nodes

Overview :

-The objective of this code is to convert your network of N nodes to a network of S super nodes

-You will input your network (as an igraph graph object)

-You get out 1) Node to super node assignments and 2) the new super node network

-This is the work described in https://arxiv.org/abs/1706.04110

Contact:

-For issues, please contact Natalie Stanley, [email protected]

Practical Info: -This code was tested using R version 3.4.3

-You will need to install igraph if you have not already

Examples

Main Function SuperNode.R is the main function

-Inputs:

-Network: Your igraph network object

-S: the number of super nodes you wish to turn your network into

-Outputs:

-You will get out a list object with the following two entries

- $SNAssn: The N-length node to super node assignment vector

- $SNNet : The S-node super node network (again, an igraph object).

-To use:

source('SuperNode.R')
Out=SuperNode(MyNetwork,NumberOfSuperNodes)

Demo Function: -Please feel free to try this on a sample network.

-This script loads the network and represents it with 500 super nodes.

-It then plots the network with nodes colored by super nodes

-It also plots the super node network.

-To use:

source('Demo.R')

supernode's People

Contributors

stanleyn avatar

Watchers

 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.