Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CXXGraph/Graph.hpp
✓ #include <CXXGraph/Graph.hpp>
Create a simple undirected graph
#include "CXXGraph/Graph.hpp"
#include <iostream>
int main() {
CXXGraph::Graph<int> g;
auto node1 = std::make_shared<CXXGraph::Node<int>>(1, 1);
auto node2 = std::make_shared<CXXGraph::Node<int>>(2, 2);
g.addEdge(std::make_shared<CXXGraph::UndirectedEdge<int>>(node1, node2));
std::cout << "Graph has " << g.getNodeSet().size() << " nodes." << std::endl;
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.