-
Notifications
You must be signed in to change notification settings - Fork 0
This C++ code defines a DirectedGraph class that supports adding, removing, and managing nodes and edges using smart pointers. It includes methods for graph traversal via breadth-first search (BFS), checking graph structure, and exporting to DOT format for visualization. Nodes are uniquely identified by string IDs.
alectippie/directed-graph
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Directed Graph Project Requirements C++ Compiler (supporting C++17, e.g., g++) Graphviz (for generating graph images from DOT files) Installation on Ubuntu/Debian sudo apt update sudo apt install g++ graphviz Usage Compile and run the program: prolly rember to chmod -+x build.sh ./build.sh This will generate: graph.dot — graph definition file graph.png — rendered graph image View graph.png with any image viewer.
About
This C++ code defines a DirectedGraph class that supports adding, removing, and managing nodes and edges using smart pointers. It includes methods for graph traversal via breadth-first search (BFS), checking graph structure, and exporting to DOT format for visualization. Nodes are uniquely identified by string IDs.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published