We can generate all possible graphs for a given number of vertex using boost library in C++.
To run the code type:
(1) g++ undirected.cpp
(2) ./a.out
Now provide number of vertex for which you want to generate all possible graphs.
(3) The program will generate a graphviz.dot file which will contains the graph in the form of list.
(4) To plot these generated graphs in a pdf file use following command:
gvpack -u graphviz.dot | dot -Tpdf -o output.pdf
(5) Now you have all possible graphs with provided number of vertex.
-
Notifications
You must be signed in to change notification settings - Fork 0
ravi-kp/All-Possible-Undirected-graph-generation
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
We can generate all possible graphs for a given number of vertex using boost library in C++.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published