Find a file
2023-08-26 15:27:12 +03:00
.vscode Create settings.json 2023-05-22 08:18:24 +03:00
Algorithms implemented experimental algorithm visualizations 2023-08-26 15:27:12 +03:00
DataExtraction modified the renaming convention 2023-05-24 17:35:45 +03:00
.gitignore Update .gitignore 2023-05-24 17:16:50 +03:00
LICENSE Initial commit 2023-05-02 17:50:51 +03:00
README.md updating the main readme, extending the description of the data extraction page 2023-05-22 09:08:23 +03:00
requirements.txt Update requirements.txt 2023-05-02 18:48:55 +03:00

Running Graph Algorithms on Obsidian Graph

This repository contains Python scripts for running graph algorithms on a graph extracted from an Obsidian notes graph view.

Introduction

Obsidian is a powerful note-taking app that allows users to create and link notes in a graph-like structure. The app has a graph view that displays the relationships between the notes as nodes and edges.

This repository provides a way to extract the graph structure from the Obsidian graph view and run graph algorithms on it using Python. This can be useful for analyzing the structure of your notes and identifying patterns and insights.

Setup

You will need git, python3 and pip installed.

You need to clone the repository:

git clone https://github.com/MemerGamer/ObsidianNotes-GraphTheory.git

Data extraction

For discretion I will not include my graph.json file, however I provide my method for extracting the graph, and renaming it with a convention.

If you don't want to extract the Graph from Obsidian

At the moment of extracting the graph I found out the graphs JSON structure. I created examples which you can use for testing the algorithm implementations. Examples

Running the Algorithms

Dependencies

Before we can run any python programs we need to install the dependencies for the projects

pip install -r requirements.txt

Note: This requirements.txt is different than the one used in the Data Extraction method.

All the allgorithms will be in the Algorithms directory.

Running them will be as simple as running the script for the algorithm and giving the path to the graph.json as an argument.

For example:

cd Algorithms

python3 bfs.py /path/to/graph.json