GithubHelp home page GithubHelp logo

portraits's Introduction

Portraits of Complex Networks

Abstract

We propose a method for characterizing large complex networks by introducing a new matrix structure, unique for a given network, which encodes structural information; provides useful visualization, even for very large networks; and allows for rigorous statistical comparison between networks. Dynamic processes such as percolation can be visualized using animation.

About the code

B_matrix.py and B_matrix.cpp take an edgelist file and write the corresponding B-matrix to a file

An edgelist is an M x 2 matrix for a graph with M edges. The C++ code requires nodes be sequential integers numbered from zero, while the python code is slower, but much more flexible (can handle directed networks for example, which the C++ cannot) and forgiving. Python code requires networkx and (optionally) pylab to plot.

Unless the networks are very large, I greatly encourage using the python code instead of the C++. Additionally, networkx has undergone a great deal of updates and the B_matrices.py file might be slightly out of date, requiring small changes to work again. Fair warning, buyer beware, etc.

Various matlab m-files are included for loading a B-matrix from file, trimming empty columns, and computing the distance between two matrices. The latter is accomplished using B_Distance.m, which takes two matrices as input and returns the distance as described in the paper. It will optionally also plot the row-wise distances.

The m-files may also work in octave, an open source "clone" of matlab but I haven't tried so I make no guarantees.

  • Jim Bagrow, 2008-04-17
  • bagrowjp [at] gmail [dot] com

portraits's People

Contributors

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