Git Product home page Git Product logo

iliastzanis / graphanalysis-enzymes-g295-gr Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 520 KB

This project utilizes various metrics to analyze a graph network based on data of ENZYMES_g295

Jupyter Notebook 100.00%
betweenness-centrality closeness-centrality clustering-coefficient co-evolution community-detection degree-centrality eigenvector-centrality graph-analysis greek-language metrics

graphanalysis-enzymes-g295-gr's Introduction

GraphAnalysis-ENZYMES-G295 Project

This project focuses on analyzing a graph network using various metrics and algorithms. The code is written in a Jupyter Notebook and utilizes libraries such as NetworkX, scikit-learn, matplotlib, pandas, and numpy.

Disclaimer: The content of the Jupyter Notebook provided in this project is written in the Greek language.

Description

The project uses different metrics to analyze a graph network. It performs the following tasks:

  1. Reads a graph network from an input file using NetworkX.
  2. Displays the number of edges and nodes in the graph.
  3. Visualizes the graph using matplotlib, making it more readable.
  4. Computes and visualizes various metrics:
    • Node Degree: Computes the degree of each node and visualizes it using a histogram.
    • Clustering Coefficient: Calculates the clustering coefficient of each node and visualizes it using a histogram.
    • Centrality Measures: Calculates different centrality measures, including degree centrality, closeness centrality, betweenness centrality, and eigenvector centrality, and visualizes them using histograms.
    • Average Shortest Path Length: Calculates the average shortest path length of the graph.
  5. Detects communities within the graph:
    • Utilizes the Modularity Maximization algorithm to find communities based on the graph's structure.
    • Calculates the modularity value, which indicates the quality of the community detection.
    • Displays the number of communities found and lists the nodes within each community.
    • Visualizes the communities using different colors for each community.
  6. Performs Spectral Clustering:
    • Prepares the graph for clustering analysis by removing self-loop edges and converting it to an undirected graph.
    • Uses the SpectralClustering algorithm from scikit-learn to perform clustering on the graph.
    • Visualizes the graph based on the community assignments obtained from spectral clustering.

Usage

To run the code in this project, follow these steps:

  1. Clone the repository to your local machine:
  git clone https://github.com/iliastzanis/GraphAnalysis-ENZYMES-G295-GR.git
  1. Navigate to the project directory:
  2. Launch Jupyter Notebook:
  3. Open the graph_analysis_project.ipynb notebook.
  4. Run each cell in the notebook sequentially to execute the code.

Note: Ensure that you have the necessary dependencies installed. You can install them using pip

  1. Explore the code and modify it according to your needs.

Feel free to experiment with different graph datasets and adjust the parameters and visualizations to suit your requirements.

graphanalysis-enzymes-g295-gr's People

Contributors

iliastzanis avatar

Stargazers

 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.