Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
143 tokens/sec
GPT-4o
7 tokens/sec
Gemini 2.5 Pro Pro
46 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
38 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Generation of weighted trees, block trees and block graphs (2401.09764v1)

Published 18 Jan 2024 in cs.DM and cs.DS

Abstract: We present a general framework to generate trees every vertex of which has a non-negative weight and a color. The colors are used to impose certain restrictions on the weight and colors of other vertices. We first extend the enumeration algorithms of unweighted trees given in [19, 20] to generate weighted trees that allow zero weight. We avoid isomorphisms by generalizing the concept of centroids to weighted trees and then using the so-called centroid-rooted canonical weighted trees. We provide a time complexity analysis of unranking algorithms and also show that the output delay complexity of enumeration is linear. The framework can be used to generate graph classes taking advantage of their tree-based decompositions/representations. We demonstrate our framework by generating weighted block trees which are in one-to-one correspondence with connected block graphs. All connected block graphs up to 19 vertices are publicly available at [1].

Definition Search Book Streamline Icon: https://streamlinehq.com
References (21)
  1. The House of Graphs - Block Graphs. https://houseofgraphs.org/meta-directory/block-graphs.
  2. H. Bielak and M. Panczyk. A self-stabilizing algorithm for finding weighted centroid in trees. Ann. UMCS Informatica, 12(2):27–37, 2012.
  3. Graph Modification Problems (Dagstuhl Seminar 14071). Dagstuhl Reports, 4(2):38–59, 2014.
  4. House of graphs 2.0: A database of interesting graphs and more. Discrete Applied Mathematics, 325:97–107, 2023. Available at https://houseofgraphs.org.
  5. R. Diestel. Graph Theory, 4th Edition, volume 173 of Graduate texts in mathematics. Springer, 2012.
  6. S. Even. Graph Algorithms. Computer Science Press, 1979.
  7. M. C. Golumbic. Algorithmic Graph Theory and Perfect Graphs (Annals of Discrete Mathematics, Vol 57). North-Holland Publishing Co., Amsterdam, The Netherlands, 2004.
  8. M. Grohe and P. Schweitzer. The graph isomorphism problem. ACM, 63:128–134, 2020.
  9. F. Harary. A characterization of block-graphs. Canadian Mathematical Bulletin, 6(1):1–6, 1963.
  10. F. Harary. Graph Theory. Addison Wesley series in mathematics. Addison-Wesley, 1971.
  11. F. Harary and E. M. Palmer. Graphical enumeration. Academic Press, 1973.
  12. P. Kelsen. Ranking and unranking trees using regular reductions. In C. Puech and R. Reischuk, editors, STACS 96, pages 581–592, Berlin, Heidelberg, 1996. Springer Berlin Heidelberg.
  13. Cataloging graphs by generating them uniformly at random. Journal of Graph Theory, 14(5):559–563, 1990.
  14. D. E. Knuth. The Art of Computer Programming, Volume I: Fundamental Algorithms. Addison-Wesley, 1968.
  15. G. Li. Generation of rooted trees and free trees. Master’s thesis, University of Victoria, 1996.
  16. Enumeration and unranking of trees with weight restrictions in Python. https://github.com/cmshalom/Enumerations/tree/master/code, 2023.
  17. Enumeration and unranking of trees with weight restrictions in Python. https://colab.research.google.com/drive/1-k6lj7WArJQKJkqtqIpCBvbZoBeFMdeB?usp=sharing.
  18. Graph isomorphism completeness for chordal bipartite graphs and strongly chordal graphs. Discrete Applied Mathematics, 145(3):479–482, 2005.
  19. H. S. Wilf. The uniform selection of free trees. J. Algorithms, 2(2):204–207, 1981.
  20. H. S. Wilf and A. Nijenhuis. Combinatorial Algorithms for Computers and Calculators. Academic Press, 1978.
  21. M. A. Yirik and C. Steinbeck. Chemical graph generators. PLOS Computational Biology, 17(1):e1008504, 2021.

Summary

We haven't generated a summary for this paper yet.