Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/abishek90/community-detection-on-a-spatial-graph

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/abishek90/community-detection-on-a-spatial-graph

  • v0.0.0-20180326045041-806e67771fd1
  • Source
  • Go
  • Socket score

Version published
Created
Source

Community-Detection-on-a-Spatial-Graph

This is a code to detect communities in a spatial random graph

There are two algorithms implemented - A GBG algorithm that is published in our paper (http://abishek90.github.io/CommDet.pdf), and an improved spectral synchronization algorithm that is not published, but empirically performs better.

To use the algorithm, run the `simulation_spectral.py' script. The parameters for this are a large integer N, a real number \lambda and 0 \leq b < a \leq 1. These parameters can be set in the main function at the end of the code script 'simulation_spectral.py'. These parameters indicates that there are roughly \lambda N nodes in the graph, half of which are in one community and the rest in another. The nodes have an uniform location label in the set [-\sqrt{N}/2,\sqrt{N}/2]^2. Conditional on the locations and communities, two nodes of the same community at a distance of \sqrt{\log(n} are connected with probability a and two nodes of opposite communities with distance between them smaller than \sqrt{\log(n} are connected with probability b. Nodes farther than \sqrt{\log(n}} are not connected. The Community Detection problem refers to how and when can one recover the communities, from a random sample of the graph and locations.

FAQs

Package last updated on 26 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc