A powerful Visual Studio Code extension designed for competitive programmers to visualize and test graph problems. Transform your nodes and edges input into beautiful, interactive graph visualizations with 0-indexed adjacency representation. No need of switching to external websites or drawing on paper while coding graph problems.
- Easy Graph Input: Simple node and edge input format
- Zero-Indexed Graphs: Generates 0-indexed adjacency representation perfect for competitive programming
- Visual Graph Display: Interactive graph visualization within VS Code
- Graph Support: Supports both undirected and directed graphs
- Competitive Programming Focused: Designed with competitive programmers in mind
- Lightweight: Minimal performance impact on your VS Code environment
You can install CP Graph Visualizer directly from the Visual Studio Code Marketplace.
- Open Visual Studio Code.
- Go to the Extensions view by clicking the square icon in the left Activity Bar or pressing
Ctrl+Shift+X
/Cmd+Shift+X
. - In the search bar, type cp-graph-visualizer.
- Click Install on the extension published by
SakshamNegi
.
- Visual Studio Code version 1.74.0 or higher
- No additional dependencies required
We welcome contributions! Here's how you can help:
-
Fork the Repository
git clone https://github.com/sakshamnnegi/cp-graph-visualiser.git cd cp-graph-visualiser
-
Install Dependencies
npm install
-
Make Your Changes
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes
- Write tests if applicable
- Create a new branch:
-
Test Your Changes
npm run test npm run compile
-
Submit a Pull Request
- Push your changes:
git push origin feature/your-feature-name
- Create a pull request with a clear description
- Push your changes:
# Clone the repository
git clone https://github.com/sakshamnnegi/gcp-graph-visualiser.git
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes during development
npm run watch
# Run tests
npm run test
Found a bug or have a feature request? Please check our Issues page first to see if it's already been reported.
When reporting bugs, please include:
- VS Code version
- Extension version
- Operating system
- Steps to reproduce
- Expected vs actual behavior
- Screenshots (if applicable)
4
0 1
1 2
2 3
3 0

5
0 1
0 2
0 3
0 4
1 2
1 3
1 4
2 3
2 4
3 4

7
0 1
0 2
1 3
1 4
2 5
2 6

- Inspired by the competitive programming community
- Built with ❤️ for developers who love graphs
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ⚡ for competitive programmers
Happy Coding! 🚀