Skip to content

NyxNebulous/CGT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Graph Theory Deadlock Analyzer

Minimal React + Vite app that demonstrates wait‑for graph analysis, deadlock detection, victim selection and safe-batch computation using simple in-memory data structures.

Quick links

Features

Getting started

  1. Install
npm install
  1. Run dev server
npm run dev

Open http://localhost:5173 (Vite default) or follow the terminal output.

How to use the app (UI) "Transactions": set number of nodes (T1, T2, ...). "Data Structure": pick the authoritative WFG representation. "Reset Graph": regenerate a random wait‑for graph. "Detect Deadlock (DFS)": runs dfsDetectCycle and highlights cycle nodes/edges. "Compute Safe Batches (Coloring)": runs reachability-based coloring (computeConflictColorsByReachability / greedyVertexColoring) and colors nodes by batch. "Resolve Deadlock (Abort Victim)": runs the victim selection (bfsVictimSelection) and removes the chosen node via removeNode, then re-runs detection and coloring

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages