GithubHelp home page GithubHelp logo

cz4071-assignment-2's Introduction

CZ4071-Assignment-2

Prerequisites

Python (3.6)

Using your dataset

Our code works for any SNAP network from https://snap.stanford.edu/data/index.html However, preprocessing is required to work with our code. Save the SPAN txt in /

We have included reformat.py to change the format.

  1. Change line 5 to the name of the SPAN dataset in reformat.py eg
TXT_NAME = "ca-CondMat.txt"
  1. run reformat.py
  2. two txt files will be saved in graph/ - {TXT_NAME}_deg.txt and {TXT_NAME}_adj.txt

Running BDOne and LinearTime

  1. Change line 3 to the name of the span dataset in Graph.py eg
GRAPH_NAME = "ca-CondMat" (without the .txt)
  1. Set verbose option (True/False) at line 4
  2. python Graph.py

you can use any of the sample SPAN graphs we have provided - ca-CondMat, AstroPh, email, GrQc

cz4071-assignment-2's People

Contributors

cheejyg avatar dhecloud avatar

Watchers

 avatar  avatar  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.