Counting P_3-Convex Sets in Graphs

Vol 57, 2025 - 340279
Complete Articles (CA)
Favorite this paper
How to cite this paper?
Abstract

The convexity P_3 is generated by the set of all three-vertex paths of a graph. In this work, we consider the P_3-convex set count problem of a graph G. We proved that this problem is #P-complete, even for split graphs. We investigate the problem of maximizing the number of P_3-convex sets in graphs with n vertices, characterizing the extreme graphs (connected or not) that reach the maximum count, equal to 2^n. By restricting the scope to connected graphs, we proved that the star K_{1,n−1} maximizes this count by setting the upper bound of 2^{n−1} + n, which is also achieved by the paths P_4 and P_5. In addition to characterizing the extreme structures, we describe a dynamic linear time programming algorithm for trees, demonstrating that trees with n vertices naturally have more P_3-convex sets than graphs with n vertices containing cycles. We also compared the exponential growth of the count in stars versus paths.

Share your ideas or questions with the authors!

Did you know that the greatest stimulus in scientific and cultural development is curiosity? Leave your questions or suggestions to the author!

Sign in to interact

Have a question or suggestion? Share your feedback with the authors!

Institutions
  • 1 Universidade Federal Fluminense
  • 2 Instituto Federal Fluminense
  • 3 Universidade Federal do Rio de Janeiro (UFRJ)
  • 4 National University of General Sarmiento
  • 5 Universidad de Buenos Aires
Track
  • TAG – Graph Theory and Related Algorithms
Keywords
Convexity P_3
Count of P_3-convex sets
Extreme graphs
#P-completeness
Accurate exponential time algorithms