r/GraphTheory • • Feb 26 '22

nonplanar meme (oc)

Post image
50 Upvotes

r/GraphTheory • • Jan 26 '25

Just a regular meme

Post image
45 Upvotes

r/GraphTheory • • 26d ago

Start Doing Graph Theory

Thumbnail
vertex.degree
32 Upvotes

It was posted on lobster.rs. Thought this community might appreciate it.


r/GraphTheory • • Jun 20 '24

Coloring and Satanism

Post image
28 Upvotes

r/GraphTheory • • Jun 11 '26

Traveling Salesman Problem but for edges, not nodes

Post image
26 Upvotes

I want to walk all the streets in the most efficient way, I.e. I want to minimize the amount of distance walked twice or more. I am familiar with the traveling salesman problem but my understanding is that it applies to nodes, not edges. I want to better understand the maths/ the algorithm to be able to apply this concept abstractly to any set of streets.

Any guidance would be much appreciated!


r/GraphTheory • • Sep 13 '25

I've made a graph generator.

Thumbnail
gallery
26 Upvotes

Hi,

I've made a graph generator. This project is mainly for my game, but I think it can be useful as a learning resource - for example, if you want to run some algorithm by hand and want some random input.

Also, I've implemented a visualization of some of the most important centralities (degree centrality, closeness centrality, betweenness centrality, eigenvector centrality), so if you are interested in complex networks, you can visualize them on random graphs.

I hope this will be useful for someone, and thank you for reading.


r/GraphTheory • • Jul 18 '25

I built a free platform to learn and explore Graph Theory – feedback welcome!

23 Upvotes

Hey everyone!

I’ve been working on a web platform focused entirely on graph theory and wanted to share it with you all:
👉 https://learngraphtheory.org/

It’s designed for anyone interested in graph theory, whether you're a student, a hobbyist, or someone brushing up for interviews. Right now, it includes:

  • Interactive lessons on core concepts (like trees, bipartite graphs, traversals, etc.)

  • Visual tools to play around with graphs and algorithms

  • A clean, distraction-free UI

It’s totally free and still a work in progress, so I’d really appreciate any feedback, whether it’s about content, usability, or ideas for new features. If you find bugs or confusing explanations, I’d love to hear that too.

Thanks in advance! :)


r/GraphTheory • • May 29 '22

Graph Theory on Historical Events

22 Upvotes

r/GraphTheory • • Sep 13 '26

An interesting problem based on the solvability of a Sudoku puzzle.

Post image
18 Upvotes

A 9X9 board follows standard Sudoku rules i.e. no two numbers can repeat in the same horizontal row, vertical column or 3x3 sub-square, now 9 numbers 1...9 are randomly scattered throughout the entire board without repetition. Since the numbers are all unique the board is always trivially valid with no need for additional checks, the question now is what percentage of these configurations are solvable. (they may have more than one solution)

Note:-

i) A valid set of clues following Sudoku rules may not always be solvable as it may create dead ends later.

ii) There are 6.67 sextillion(6.67 x 10^21) completed Sudoku board configurations.

We can also generalise this problem for any N^2 x N^2 board following sudoku rules and having N^2 clues scattered randomly throughout the entire board without repetition, Interestingly for N=2 i.e. a 4x4 board we get 67.03% solvability this can be verified by solving all possible configurations as there arent that many really, about 16!/12!(43680) ways, though it isnt possible to use brute force computation for larger values of N, I tried to solve this problem using combinatrics but I feel graph theory would have a better answer to this problem.


r/GraphTheory • • May 06 '24

Automatically find every k-coloring on a graph - https://www.khanacademy.org/computer-programming/every-k-coloring-tree-search/4932892771401728

Thumbnail
gallery
18 Upvotes

r/GraphTheory • • Dec 01 '21

Amazon's top sellers for graph theory

Post image
18 Upvotes

r/GraphTheory • • Jan 22 '26

Attack on Multiway Casual Graphs

Post image
15 Upvotes

Final form


r/GraphTheory • • Oct 06 '26

Hadwiger has been disproven

Thumbnail
github.com
14 Upvotes

r/GraphTheory • • Sep 01 '24

Tell me something interesting applications of Graph Theory you have used in your job or research

14 Upvotes

I recently started exploring Graph Theory, it's a fascinating topic for me and I am loving it. Working in the field of Data, it intrigued me how the practical day to day life problems are being tried to be solved by using these concepts

Note: I am actually looking for fascinating, intriguing stories which ignites the spark to explore the cases where the theory stands out


r/GraphTheory • • Feb 18 '24

Is there a technical term for this type of graph?

Post image
13 Upvotes

Each node has specifically two children and two parents except for root and leaf nodes.


r/GraphTheory • • Jan 10 '22

Dissecting and implementing graph theory research papers in python

13 Upvotes

Hi, I wrote a 2 part article on creating interaction networks between characters in novels and other bodies of text. The first part is a detailed literature review outlining and dissecting research papers relevant to the topic and the second part is the implementation of the thoughts and ideas presented in the first part (in python). Check it out if you're interested

Part 1 : https://towardsdatascience.com/mining-modelling-character-networks-part-i-e37e4878c467
Part 2 : https://towardsdatascience.com/mining-modelling-character-networks-part-ii-a3d77de89638


r/GraphTheory • • Sep 22 '26

[OC] Topological map of countries sharing a land border

Post image
12 Upvotes

r/GraphTheory • • Jun 07 '26

Major Update: I just supercharged my Interactive Graph Theory Learning Platform! (3D Graphs, Real-World Maps, Python Sandbox & 25+ Algorithms)

12 Upvotes

Hey everyone! 👋

A while back, I started building a platform to make learning graph theory visual, interactive, and completely hands-on. Today, I'm beyond excited to share a massive update with the community detailing every single feature we've added to the platform so far!

I'm poured a lot of love into making this the ultimate playground for students, developers, and graph theory enthusiasts. Here is a breakdown of what you can play with right now:

🗺️ Real-World Geographic Maps Graphs aren't just abstract dots anymore! I've integrated interactive geographic maps (Leaflet), allowing you to place nodes at actual latitude/longitude coordinates. You can run algorithms like Dijkstra's or Vehicle Routing directly over real-world maps (with support for dark, light, satellite, and terrain modes) and watch the algorithms navigate the globe!

🌌 3D Graph Visualization Want to see your network from a new angle? You can now toggle your graphs into stunning three-dimensional space! Using our new 3D view, you can rotate, pan, and zoom around complex topologies to get a much better intuitive feel for highly connected networks.

💻 In-Browser Code Execution Sandbox (Python & JS!) Instead of just watching our pre-built algorithms run, you can now write your own custom algorithms directly in the browser using JavaScript or Python! The sandbox runs your code and hooks directly into the visual graph canvas, letting you highlight nodes, color edges, and debug your logic step-by-step.

💾 Saved Graphs & Code Library Created a really cool map or wrote an awesome custom Python algorithm? You can now save your custom code snippets and graph topologies to your profile and access them later via the new "Saved Codes" and "Saved Graphs" library.

🧑‍💻 Interview Prep Mode Getting ready for technical interviews? I added a dedicated "Interview Prep View" designed specifically to help you drill down on data structure knowledge and test your understanding of algorithmic implementations.

🧠 Massive Library of 25+ Interactive Algorithms I’ve expanded our algorithm library significantly! You can now watch step-by-step visual animations for all of the following:

  • Traversals: Breadth-First Search (BFS), Depth-First Search (DFS), Topological Sort, Eulerian Path.

  • Shortest Path: Dijkstra's, Bellman-Ford, Floyd-Warshall.

  • Minimum Spanning Tree (MST): Prim's, Kruskal's, Boruvka's.

  • Connectivity: Tarjan's SCC, Kosaraju's SCC, Articulation Points, Bridges, Bipartite Check, Cycle Detection, Chordality.

  • Network Flow: Max Flow, Min Cut.

  • Pathing & NP-Hard Classics: Hamiltonian Path, Traveling Salesperson Problem (TSP), Graph Coloring, Maximal Clique.

🚚 Supply Chain & Logistics Algorithms We wanted to show how graph theory applies to the real world. We've introduced a whole new category focusing on logistics:

  • Facility Location Optimization (finding the best central hub)

  • K-Means Clustering on graphs (with convex hull visualizations)

  • Multi-Vehicle Routing & Capacitated Vehicle Routing (CVRP)

🎨 Advanced Interactive Graph Canvas The core 2D experience is smoother than ever. You can freely draw and drag nodes, add/remove edges, toggle between directed/undirected or weighted/unweighted graphs, and instantly watch how the changes affect algorithm execution in real-time.

📚 Integrated Educational Lessons I've built out a full curriculum of interactive markdown lessons. You can read through the theory, terminology, and real-world applications of graphs while interacting with live examples right next to the text.

🌍 Full Internationalization (i18n) Graph theory is for everyone, so we've added full multi-language support! You can easily switch the UI language to learn and explore in your native tongue.

📥 Complete Data Portability Have a specific graph you want to test? You can now easily Import and Export your custom graphs in multiple formats, including JSON, Adjacency Matrices, and Edge Lists.

Platforme link: https://learngraphtheory.org/

I'd love to hear your feedback! What algorithms or features should we add next? Let me know below! 👇


r/GraphTheory • • Jun 21 '24

Looking for a graph theory game

12 Upvotes

Does anyone know what this game is called?

Two players play on a graph with no isolated vertices. They start at the same vertex, taking turns moving along an edge connected to the vertex they are currently at. If an edge is traversed, it is removed from the graph. The game enda when one player is at an isolated vertex with that player losing.

Does this game have a name?

I saw it in a Norwegian game show, where the graph was a 5x5 grid, with the 4 corner vertices removed. All vertices were connected to their neighbor horizontally and vertical, but not diagonally. The players started at the center vertex. Which player would win in this case if both played optimally?


r/GraphTheory • • Dec 02 '22

We used graph theory to predict the 2022 World Cup winners. It worked in 2018 - can we do it again?

12 Upvotes

We built a graph visualization app and used graph theory to measure the 'quality' of each player, using only the shape of the network they make with other teams and clubs: https://cambridge-intelligence.com/fifa-world-cup-2022-prediction/


r/GraphTheory • • Feb 28 '25

Isomorphism

Post image
11 Upvotes

Hi does anybody know if these graphs are isomorphic? Thank you


r/GraphTheory • • Jan 26 '23

Nothing of special or questions to do, I just figure out how to use N-I algorithm, now I can die.

Post image
11 Upvotes

r/GraphTheory • • Feb 21 '18

A gentle intro to Graph Theory, made this while studying. Feedback appreciated.

Thumbnail
medium.com
11 Upvotes

r/GraphTheory • • Dec 01 '17

Food for thought

Post image
11 Upvotes