Code Monkey home page Code Monkey logo

networkx-and-graphs-in-python's Introduction

Networkx and Graphs in Python

This was one of my problem sets about the library networkx in ptython. This library is used to work with graphs that is used in network science.

This is a jupyter notebook, so in order to run this code you need to open it in google collab or jupyter notebook. In this problem set, I made some subgraphs and some projected graphs from the main graph of the problem. Also, I calculated the Pearson correlation, which indiactes the linear relationship of two variables. Furthermore, I generated a graph representing random walk.

Link to graph theory wikipedia

Link to Pearson correlation coefficient wikipedia

Link to Random Walk wikipedia

In this code I have used the following libraries:

networkx, pandas and numpy

You can easily install thesse libraries by the following command:

pip install [name of the library]

I hope you can use these examples to get familiar with networkx library.

Graph of the employees and their favorite movie:

image

A projected graph:

download

Graph of the random walk:

download

networkx-and-graphs-in-python's People

Contributors

mahyar-e 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.