Manuscript Offprint
arXiv:2611.08534Proper Conflict-Free Coloring of Undirected Path, Chordal Bipartite, and Strongly Chordal Graphs
Abstract
A proper conflict-free coloring is a proper coloring in which each nonisolated vertex has a neighbor whose color occurs exactly once in its open neighborhood. We prove that deciding whether the clique number of colors suffices is NP-complete on undirected path graphs, even with a supplied representation by paths in a star. One extra color suffices on every instance in the reduction. We also prove NP-completeness on chordal bipartite graphs for every fixed palette size . For strongly chordal graphs, reverse simple elimination gives a constructive upper bound of one more than the clique number. We obtain exact polynomial-time algorithms under several conditions on the maximum cliques, including when they induce a connected subtree of a clique tree. For strictly chordal graphs we characterize the optimum and construct an optimal coloring in time, where n and m count the vertices and edges. For strongly chordal graphs with clique-tree separators of size at most s, we give an exact algorithm in time, with no bound on the clique number.
Keywords. Proper conflict-free coloring, Undirected path graphs, Chordal bipartite graphs, Strongly chordal graphs, Clique trees.
1 Introduction
In a proper coloring, adjacent vertices have different colors. A proper conflict-free coloring also requires each nonisolated vertex to have a neighbor whose color occurs exactly once in its open neighborhood. Such a neighbor is called a witness. The difference already appears on a three-vertex path. A proper two-coloring gives both ends the same color, leaving the middle vertex without a witness. A third color resolves this. The requirement is useful when a vertex must identify a neighbor by its color alone, for instance when colors represent communication channels.
We study how this local requirement affects the complexity of coloring graphs with structured neighborhoods. For a graph , write for its clique number and for its proper conflict-free chromatic number. Chordal graphs admit an optimal ordinary coloring with colors. With that palette, each maximum clique uses every color. If a vertex belongs to several maximum cliques, any witness for it must belong to their intersection. Smaller maximal cliques can also affect the choice. The colors they omit determine which witnesses in neighboring cliques retain their uniqueness. On the bipartite side, ordinary coloring needs at most two colors, which makes it natural to ask whether the witness condition can make a fixed palette hard to test even when induced cycles are restricted.
Fabrici et al. studied proper conflict-free coloring alongside unique-maximum coloring [7]. Caro et al. investigated the relation to ordinary coloring and determined the optimum on trees [3]. Exact linear-time algorithms are known for block and proper interval graphs [11, 14]. For fixed treewidth , Liu's bound of colors and Courcelle's theorem yield an exact algorithm. For each candidate palette, the coloring requirement can be written in monadic second-order logic by specifying independent color classes and a uniquely colored neighbor for each nonisolated vertex [4, 10]. This also gives polynomial-time solvability on chordal graphs for each fixed . Graphs with can be rejected, and the remaining graphs have treewidth at most . In earlier work, we proved hardness at the clique number on well-partitioned
kamal.7.2013@gmail.com, kamal.santra@iitg.ac.in
(a) Chordal graphs and subclasses

(b) Bipartite graph classes

(c) Bounded treewidth
Figure 1: Selected graph-class inclusions and results for proper conflict-free coloring. Arrows point to subclasses. Known indicates an earlier result or a consequence of one, and Here indicates a contribution of this paper. The symbol denotes the clique number. Split and block graphs are well-partitioned chordal [2]. In panel (c), is fixed.
chordal graphs and gave a clique-number-parameterized algorithm for interval graphs [12]. Ahn, Im, and Oum proved that proper conflict-free -colorability is NP-complete on bipartite graphs for every fixed [1]. Pradhan and Sharma established the same hardness on perfect elimination bipartite graphs [11]. Figure 1 places our results alongside the relevant earlier ones.
-
Chordal bipartite graphs. Proper conflict-free -colorability is NP-complete for every fixed . The reductions impose color constraints through open neighborhoods and exclude induced cycles of length six or more (Theorem 2).
-
Strongly chordal graphs. Reverse simple elimination constructs a coloring with at most colors in polynomial time (Theorem 5). We find an optimal coloring in polynomial time under several conditions on the maximum cliques. These include a nonempty intersection of all maximum cliques, a clique star with a maximum central clique, and maximum cliques that induce a connected subtree of a clique tree (Theorems 6 and 11 and Corollary 10).
-
Strictly chordal graphs. We construct an optimal coloring in time. The optimum is
exactly when a vertex of the true-twin quotient representing a singleton class belongs to two blocks of maximum weight. In all other cases the optimum is (Theorem 12).
- Bounded clique-tree separators. For strongly chordal graphs with a supplied clique tree whose separators have size at most , we find an optimal coloring in time, with unrestricted clique number (Theorem 13). The algorithm groups colors by their truncated neighborhood counts on the separators.
Section 2 sets out the notation and graph classes used in the proofs. Sections 3 and 4 establish the two hardness results. Section 5 proves the additive-one bound and develops the maximum-clique algorithms. Section 6 gives the linear-time algorithm for strictly chordal graphs, and Section 7 develops the algorithm for bounded clique-tree separators. Section 8 discusses the remaining complexity questions.
2 Notation and preliminaries
All graphs are finite, simple, and undirected, except for an auxiliary multigraph in Section 3. Write and for the open and closed neighborhoods of a vertex . A proper conflict-free -coloring, abbreviated PCF -coloring, is a proper coloring such that for every with there is a vertex whose color occurs once in . We call a witness for . A palette of size may contain unused colors. We denote the smallest feasible palette size by and the clique number by . The empty graph has both parameters zero. For a disjoint union, the PCF chromatic number is the maximum of the values for its components.
A chordal graph has no induced cycle of length at least four. A maximal clique is inclusion-maximal. A maximum clique has order . We use the standard chordal graph facts that maximal cliques can be enumerated in polynomial time, there are at most of them, and an optimal proper coloring can be obtained by coloring in reverse of a perfect elimination order. These facts follow by deleting simplicial vertices, whose remaining neighbors form a clique. The deleted vertex together with its remaining neighbors contains any maximal clique for which it is the first deleted vertex. A clique tree has the maximal cliques as its nodes, with the property that the cliques containing any given vertex induce a connected subtree.
A -sun, for , consists of a clique and an independent set , with , where indices are taken modulo . A graph is strongly chordal if it is chordal and has no induced sun [8]. A graph is an undirected path graph if its vertices can be represented by paths in a tree, with adjacency given by intersection of the paths [9]. Interval graphs are the special case in which the host tree is a path. They are also strongly chordal. Indeed, consider a clique of intervals meeting at a point. An independent interval outside this clique that meets exactly two of its members must lie wholly to one side of the point. On either side, all pairs that can be met in this way coincide, since the intervals are met in the order of their endpoints on that side. A sun would require at least three distinct pairs. The reduction in Section 3 shows where these classes diverge. Its instances can have an induced sun, even though they have representations by paths in a star.
3 Hardness on undirected path graphs
An undirected path graph is the intersection graph of a family of paths in a tree. We allow paths consisting of a single vertex, and distinct graph vertices may be represented by identical paths. The reduction below uses a star as the host tree. This restriction limits each path containing the center to at most two leaves, so a direct encoding in which a variable must occur at every leaf corresponding to one of its clauses would be unsuitable. Instead, we represent individual edges of an auxiliary multigraph by paths between pairs of leaves. The choice of colors omitted at a distinguished leaf encodes a truth assignment.
Theorem 1. Deciding whether a graph admits a proper conflict-free coloring with colors is NP-complete on connected undirected path graphs. Hardness holds for a supplied representation on a star, with .
Proof. Given a coloring, one can check properness and count the occurrences of each color in each open neighborhood in polynomial time. The clique number can also be computed in polynomial time on this class. In a path representation, it equals the maximum number of paths containing any single host-tree vertex, by the Helly property of subtrees of a tree. Thus the problem belongs to NP.
We reduce from 3-SAT [13]. Write the variables as and the clauses as . We may assume that and that each clause contains between one and three literals on distinct variables.

Figure 2: The two parts of the path-graph construction. On the left, the four vertices of one variable are joined by doubled cycle edges. The clause vertex is adjacent to the endpoints of its designated literal edge. Only the incidences involving this variable and this clause are shown. On the right, an edge of gives a path through the center of the host star.
Indeed, a clause containing both signs of a variable can be dropped, and repeated occurrences of a literal can be deleted. An empty clause can be handled by outputting , which has clique number two and has no proper conflict-free two-coloring.
The auxiliary multigraph. For each variable , create a private four-cycle with cyclic order . Refer to its vertices as zero vertices. Designate for the positive literal and for the negative literal . The two designated edges belong to opposite perfect matchings of the four-cycle. Replace every cycle edge by two parallel copies. The two copies will allow their corresponding graph vertices to witness one another without affecting which underlying cycle edges are selected.
Add a vertex adjacent to all zero vertices. For each clause , add a vertex and the edge . Also join to the two endpoints of the designated edge of every literal of . These edges are simple. In particular, a clause on distinct variables connects to exactly zero vertices. Denote the resulting multigraph by .
The path graph. Create a clique with a vertex for every edge copy of . Add padding vertices to , and put . For each vertex of , let be the set of vertices representing edge copies incident with . Define a nonnegative integer by setting for zero vertices, , and . Add a clique of size . Make complete to and incomplete to . There are no edges between distinct leaf cliques. The padding ensures every leaf clique is nonempty, since .
Use a star with center and one leaf for every vertex of . Represent a central vertex for an edge copy by the path , each padding vertex by , and each vertex in by . Their intersections give exactly the stated adjacencies. Every is nonempty, so is connected. A clique that meets lies in , which has size . As has size , we have . The number of edge copies and host vertices is . Each leaf clique has at most vertices, so the construction is polynomial.
Omitted colors and witnesses. In a proper -coloring, identify a color with its unique representative in . The colors not used on are exactly , where and . Conversely, for any such sets , coloring bijectively with gives a proper coloring.
Let represent an edge copy with endpoints . The vertex sees every color except its own once in , and its only neighbors outside lie in and . Consequently, has a witness if and only if
If is or a clause vertex and is a zero neighbor of , their unique edge gives . Since , the edge vertex for has a witness exactly when .
For each , the number of its zero neighbors is . An omitted color belongs to the boundaries of at most two zero vertices, because it represents one edge copy or is a padding color. Therefore, meeting all required boundaries with omitted colors forces every omitted color to meet exactly two required boundaries, and each required boundary to be met once. Equivalently, consists of edge copies forming a perfect matching on the zero neighbors of . For , this means choosing one of the two underlying perfect matchings on each variable cycle. For , this means choosing one copy of each designated literal edge in . There are no other possible matching edges between its zero neighbors, because each variable occurs at most once in the clause.
The unique token for is the only member of . Neither omission set meets the other endpoint's boundary, since both consist of edge copies joining two zero vertices. Thus the condition at reduces to . If a proper conflict-free -coloring exists, read a truth assignment from the underlying matchings selected by . This intersection condition certifies a true literal in every clause.
Conversely, fix a satisfying assignment. Use its matching on each variable cycle for , using a fixed copy of each edge. For each , select the fixed copy of every designated literal edge of that clause. These choices give witnesses for all edge vertices involving or a clause vertex. The two copies of any cycle edge have identical closed neighborhoods, so they witness one another in a proper coloring. A padding vertex sees the clique minus itself. A vertex of sees the clique , where denotes that vertex. Both kinds of vertices therefore also have witnesses.
Finally, colors always suffice for the constructed graph. Give the vertices of distinct colors and choose a padding vertex . In each , use distinct colors avoiding the colors on and the color on . There are available colors, enough for . The vertex witnesses every other vertex of , and it is witnessed inside . The leaf vertices still see cliques. This proves the gap guarantee.
The star representation in Theorem 1 does not force strong chordality. In fact, the construction contains an induced 3-sun. Take the three central vertices for , where is a variable-cycle edge, and one vertex from each of . The central vertices form a triangle, and the three independent leaf vertices see its three distinct pairs. The strongly chordal results therefore require a separate argument.
4 Chordal bipartite graphs
A bipartite graph is chordal bipartite if it has no induced cycle of length at least six. This condition allows four-cycles. Ahn, Im, and Oum proved that PCF -COLORABILITY is NP-complete on bipartite graphs for every fixed [1]. The hardness results of Pradhan and Sharma for perfect elimination bipartite graphs do not give hardness for chordal bipartite graphs. Their reduction for three colors uses induced cycles of length at least six, and the construction for larger palettes retains an induced six-cycle from its subdivided palette clique [11]. Here we give reductions whose output graphs are chordal bipartite.
Theorem 2. For every fixed integer , PCF -COLORABILITY is NP-complete on chordal bipartite graphs.
We reduce from two-colorability of a 3-uniform hypergraph. Equivalently, the input is a monotone Not-All-Equal formula whose clauses are triples of distinct variables, and the question is whether each triple can contain both Boolean values [13]. For completeness, a two-element set in the formulation with sets of size at most three can be replaced by the four triples , , , with fresh . These triples can be split exactly when and have different values. A singleton or empty set gives an immediate negative instance. We use nontrivial inputs with at least one triple and at least three variables, since the remaining cases can be decided directly.
4.1 Four colors
Let contain one vertex for each variable. On the opposite part, introduce four vertices , called anchors, and two vertices for each clause . Make complete to the anchors and the clause vertices.
On the part containing , add four test vertices with neighborhoods , , , and , respectively. Attach a private pendant vertex to each anchor. For each occurrence of variable in clause , introduce two vertices . Add the edges of the path and the edge . The vertex lies on the part opposite , and lies on the same part as . In particular, has degree two, and . There are no other edges. Figure 3 depicts the construction.
We first check the graph class. The following observation also applies to the reduction for larger palettes.
Lemma 3. Let be distinct vertices in one part of a bipartite graph. Add test vertices, each adjacent to exactly the vertices of a nonempty interval in this order. The bipartite graph consisting only of the and the test vertices is chordal bipartite. If the original graph is chordal bipartite and every original vertex adjacent to some is adjacent to all the , then the resulting graph is chordal bipartite as well.

Figure 3: The reduction for four colors. Double lines denote complete joins between the indicated sets. The dashed line indicates the anchor tests and pendant attachments described in the text. Dotted edges in the occurrence gadget are already present in the complete joins.
Proof. In an induced cycle of length at least six in the graph of points and tests, each test on the cycle would have exactly two neighbors among the selected points. These points must be consecutive in the order restricted to the selected points. Contracting the two-edge steps through test vertices would therefore produce a cycle in the linear adjacency path of the selected points, which is impossible.
Consider next an induced cycle using both a test vertex and a vertex outside the points and tests. The cycle must leave the test subgraph via a point and an original vertex adjacent to that point. Such an original vertex sees all the points, so at most two points can occur on the cycle, and both must be its cycle neighbors. There must in fact be two points, because entering and leaving the test subgraph requires two distinct points. The segment through the tests consists of a single test between these two points. Hence the cycle has length four.
In the constructed graph, pendant vertices lie on no cycle. An induced cycle through must contain a segment with . The edge is a chord unless the cycle is a four-cycle. After ignoring all , the pendant vertices, and the tests, every variable vertex is complete to the remaining opposite part. It cannot belong to an induced cycle of length at least six. Without the variables, only isolated anchors and disjoint complete bipartite clause graphs remain. Thus, the graph without the tests is chordal bipartite. Every neighbor of an anchor in this graph, before restoring the pendant vertices, is adjacent to all four anchors. Lemma 3 permits us to restore the tests. Restoring the pendants introduces no cycle.
Suppose the graph admits a PCF coloring with at most four colors. A degree-two vertex has a witness exactly when its two neighbors have different colors. The three pair tests therefore force consecutive anchors to have different colors. With only two colors the sequence would alternate, and each color would occur twice at the full test. Hence the anchors use at least three colors. Since every variable vertex is adjacent to every anchor, the anchors use exactly three colors and every variable vertex uses the remaining color. Name this remaining color 1.
The vertex forces . The neighborhood of includes all the variable vertices, so color 1 occurs there repeatedly. Its three occurrence neighbors avoid color 1 and the color of . Both available colors must occur among these three vertices, since otherwise no color occurs exactly once. Properness now forces and to use the same color, denoted by . At , color already occurs twice. Thus cannot use . The vertices use the two distinct colors outside .
The clause colors all agree. If all three colors other than 1 occur as clause colors, every variable vertex sees each of them at least twice on the clause pairs. If exactly two occur, let be the third color other than 1. The only possible witness color at any variable is then . This color occurs on an anchor, so no can use . For any fixed clause , each must consequently use the same color, namely the color outside , and all three must use . This contradicts the condition at .
Rename the common clause color as 2. All occurrences now use signal colors 3, 4, with opposite colors on and . Each variable vertex sees both signals on the anchors and sees color 2 repeatedly on the clause pairs. If two of its occurrence vertices use different signals, neither signal can witness the variable. Thus the at a given variable all use the same signal. Read these signals as Boolean values and assign an arbitrary value to a variable with no occurrences. Each clause sees both signals on its vertices, so the assignment satisfies the formula.
Conversely, fix a satisfying assignment. Give the variables and the tests color 1, the clause pairs color 2, and the anchors the sequence . For each occurrence, give the signal 3 or 4 assigned to its variable and give the other signal. Give each anchor pendant a color different from 1 and from its anchor's color. This is a proper coloring. Each variable sees the signal it does not use exactly once at an anchor. Each clause vertex sees a singleton among its occurrence neighbors because its triple uses both signals. The vertex sees two different colors, and its own color witnesses . Each anchor is witnessed by its pendant, and the tests have witnesses by the anchor sequence. Every pendant sees its sole neighbor. This proves the equivalence for four colors.
4.2 Larger fixed palettes
We use a simple property of interval tests. If each nonempty interval of a sequence of colored points contains a color occurring exactly once and the sequence uses at most colors, then . To see this, choose a color occurring once in the full sequence. Each side of that occurrence uses at most colors and satisfies the same property, so induction gives the bound. Conversely, the sequence on positions given by , where is the exponent of two dividing , uses colors and has a unique maximum color on every nonempty interval. The two largest ranks occur once each when . All smaller ranks occur at least twice.
Fix and start with the same formula. Introduce variable vertices on one side and one clause vertex per clause on the other side. Introduce the following three groups of points.
-
A group of anchors on the clause side, with a test for every nonempty interval.
-
A group of four anchors on the variable side, with a test for every nonempty interval.
-
A set of support vertices on the clause side, partitioned into two groups of size each. In each group, add a test for every nonempty interval in its own order.
Give each anchor and each support vertex a private pendant neighbor. Make complete to the clause vertices, , and . Make complete to . For each occurrence of variable in clause , add the path and make complete to . These and the specified tests and pendants are all the edges.
We verify chordal bipartiteness before analyzing the colors. Again, no induced cycle of length at least six uses . The cycle would have to include for or , and would be a chord. Ignore tests and pendant vertices for the moment. Once the are removed, is complete to the opposite part. After deleting , the support vertices are complete to the remaining opposite part. Deleting the supports leaves disjoint stars centered at the clause vertices and isolated vertices. Thus the graph at this stage has no induced cycle of length at least six. The vertices of each tested point group have the same external neighbors before restoring the tests and pendants. Restoring one group's tests does not change this property for any other group. Lemma 3 proves that all the tests can be restored, and pendant vertices do not affect chordal bipartiteness.
In any PCF -coloring the tests on force at least colors there. Hence the variables all use one color, which we name 1, and uses every other color. The tests on force at least three colors there, so the supports use at most colors. Each support group uses at least colors by its tests. Thus the two groups use the same palette of exactly colors, and every color in occurs at least twice in . Since is complete to , color 1 is not in . Let be the two colors outside .
The degree-two test at gives , and properness at gives . Thus uses or . Since sees color 1 repeatedly, its triple must contain both signals. Properness forces . At , every support color is already repeated, and contributes another support color. Its witness must therefore be in the other signal color. Finally, sees every color except 1 on and every support color repeatedly on . A signal can witness only if it is absent from all its occurrence vertices . Therefore the occurrences of a variable agree, and the clauses use both signals as required.
Given a satisfying assignment, give color 1. Color by the rank sequence above, using for its two highest ranks and for the other ranks. Color by the same rank sequence with colors , and color each support group by a rank sequence on . Give the clause vertices an arbitrary common color of . The interval tests on and on the supports can all use color 1. The tests on can all use a color of . Give each its variable's signal, and give the opposite signal. Each variable is witnessed by the unused signal at , each clause is witnessed by a signal in its triple, and have witnesses by the same neighborhood counts used above. A pendant at can use any color different from 1 and its anchor's color. A pendant at can use any other color in , since all the nonpendant neighbors of that anchor use colors of . A pendant at a support vertex can use another color of , which exists because , and that color is absent from its nonpendant neighborhood. In each case the pendant color is absent from the nonpendant neighbors of its anchor or support vertex, so the pendant witnesses that vertex. Every pendant has its sole neighbor as a witness. The interval tests have witnesses by construction. This gives a PCF -coloring.
For fixed , the anchor and support families have constant size. Both reductions have polynomial size, and a proposed coloring can be checked in polynomial time. This completes the proof of Theorem 2.
Proposition 4. A bipartite graph admits a PCF two-coloring if and only if every nonisolated vertex has degree one. A nonempty chordal bipartite graph of minimum degree at least two has no PCF three-coloring.
Proof. In a proper two-coloring every neighborhood is monochromatic. This gives the first claim. For the second, orient the edges of a proposed PCF three-coloring cyclically by colors, from 1 to 2, from 2 to 3, and from 3 to 1. Any directed cycle has length divisible by three, and bipartiteness forces its length to be even. A shortest directed cycle is induced, since any chord and the appropriate directed subpath would give a shorter directed cycle. Chordal bipartiteness therefore implies that the orientation is acyclic. However, at a vertex of degree at least two, the PCF condition requires neighbors of both other colors, so the vertex has positive indegree and positive outdegree. This is impossible in a finite acyclic digraph.
Thus the hardness in this section concerns a fixed threshold strictly larger than the clique number. The complexity of PCF three-colorability on general chordal bipartite graphs is not determined by these results.
5 Exact algorithms for subclasses of strongly chordal graphs
We first show that a strongly chordal graph always has a PCF coloring using at most one more color than its clique number. We then study when that extra color is necessary. One exact test uses the intersection of the maximum cliques. A second algorithm handles several maximum cliques simultaneously, provided their vertices interact with the rest of the graph through suitable clique attachments.
5.1 Simple elimination and the additive-one bound
A vertex of a graph is simple if the closed neighborhoods of the vertices in are linearly ordered by inclusion. A simple vertex is simplicial. Indeed, for any two distinct neighbors of , the inclusion would imply , and the reverse inclusion gives the same conclusion. A simple elimination order removes a simple vertex at each step in the graph that remains. We use Farber's characterizations of strongly chordal graphs by simple elimination and as chordal graphs with no induced sun [8]. We also use the fact that a noncomplete strongly chordal graph has two nonadjacent simple vertices [5]. It follows that a simple elimination order can be chosen to end with any prescribed clique . While vertices outside remain, remove any such vertex if the current graph is complete. Otherwise at least one of the two nonadjacent simple vertices lies outside .
The following observation will be used repeatedly. If and , then is a witness for in every proper coloring of . In fact, is adjacent to , and every neighbor of other than is adjacent to . Properness therefore makes the color of unique in .
Theorem 5. Let be a nonempty strongly chordal graph with clique number . Then . A coloring meeting the upper bound can be constructed in polynomial time.
Proof. Write , and color the vertices in reverse order of a simple elimination order. At each stage maintain a proper conflict-free coloring of the subgraph induced by the vertices already inserted. Let x be the next vertex. Its already colored neighbors form a clique of size at most k - 1. If this clique is empty, give x any color. Otherwise let z be a neighbor of x with largest closed neighborhood by inclusion in the graph after inserting x. Such a neighbor exists by simplicity.
For every neighbor of other than , we have in the current graph. Thus witnesses once the coloring is proper. The vertex also has a witness, since its neighborhood is a nonempty clique. If previously had a witness, preserve it by avoiding its color on . If was isolated before inserting , then witnesses . In total we forbid the colors of the neighbors of and at most one additional color. A palette of colors suffices.
The lower bound follows from properness. A simple elimination order can be found by testing closed-neighborhood inclusions and deleting a simple vertex at each step. With an adjacency matrix, testing every candidate directly at every stage takes time on an n-vertex graph. The reverse steps use only neighborhood and color comparisons and fit within the same bound.
5.2 Maximum cliques with a common vertex
Theorem 6. Let be a strongly chordal graph with clique number . Let be the intersection of all maximum cliques of . If , then . If , then , and a PCF -coloring can be found in polynomial time. In particular, a strongly chordal graph with a unique maximum clique admits a PCF -coloring.
Proof. Suppose first that . In any proper -coloring, each maximum clique contains all colors exactly once. If witnesses , then must belong to every maximum clique. Otherwise a different vertex of color in a maximum clique would also be a neighbor of . This is impossible since . Theorem 5 now gives the equality.
Suppose next that are distinct vertices of . Use a simple elimination order ending with the edge , and give distinct colors. As we insert the other vertices in reverse, maintain that witnesses every neighbor of and witnesses , as well as the PCF property. At the insertion of , forbid the colors on its already colored neighbors. We describe the extra protection that may be needed.
If is adjacent to , also forbid . This preserves the witness of , and the color of is unique in the clique neighborhood of . All previous neighbors of retain their witness because has a color different from .
If is not adjacent to but has a neighbor adjacent to , let be a neighbor of with largest closed neighborhood in the current graph. Since , the vertex is also adjacent to . Forbid on . This preserves the witnesses of all the affected neighbors of , including . Every other affected neighbor of has as a witness by closed-neighborhood inclusion.
If sees neither nor any neighbor of , use the insertion rule of Theorem 5. This cannot disturb the invariant for and its neighbors.
In each case we forbid at most one extra color in addition to the colors on the clique neighborhood of . If this neighborhood has size , then and its neighbors form a maximum clique. Both and belong to it, so is in the first case and is already forbidden by properness. Otherwise the neighborhood has size at most . Thus a color always remains in the -color palette, and the invariant holds throughout.
For each , two copies of sharing one vertex give a strongly chordal graph with . The exclusive vertices of either copy are simple, so deleting them one at a time gives a simple elimination order. The two maximum cliques intersect in their common vertex, and Theorem 6 applies.
5.3 A polynomial witness-selection problem
Let be a set of at least two labels and let be an indexed family of nonempty subsets of . Each set has a nonnegative integer budget . We seek a map with for each , subject to
For a coloring application, a label will stand for a vertex whose color is available as a witness. A budget bounds the number of distinct witness colors that must be kept out of an attachment.
We call the incidence matrix of totally balanced if its bipartite incidence graph has no induced cycle of length at least six. Equivalently, there is no square submatrix of order at least three whose nonzero entries form one cycle. The maximal-clique matrix of a strongly chordal graph is totally balanced [8]. Deleting rows or columns preserves this property.
Lemma 7. If has a totally balanced incidence matrix, one can construct in polynomial time a tree on such that each induces a connected subtree of .
Proof. First we show that there is a label for which the sets containing are nested by inclusion. Make a split graph with a clique of row vertices indexed by and an independent set of label vertices indexed by . A row vertex is adjacent to exactly when . This graph is chordal. If it had an induced sun, all its clique vertices would be row vertices because an independent-set vertex is simplicial. Its independent rays would then be label vertices, and the incidences of the sun would give an induced cycle of length at least six in the incidence graph. Thus the split graph is strongly chordal and has a simple vertex. If a simple vertex is a label, its adjacent row vertices have nested closed neighborhoods, so their sets are nested. If a simple vertex is a row, its closed neighborhood contains every row vertex. In that case all row sets are nested, and any label works. This argument still applies after restricting the ground set to any subset of labels, since total balance is preserved.
Successively remove a label with this nesting property. If a set containing has at least one other remaining label, join to another label in the smallest such set, with all sets restricted to the labels still present. Otherwise join to any label that remains after it. Do not add an edge for the final label. Each added edge joins a removed label to a later one, giving a tree. For each original , every member except the last removed member has its later neighbor in . Hence is connected. Direct tests of nesting give a polynomial construction. For and , testing every candidate by pairwise set comparisons at every deletion takes time.
Lemma 8. If has a totally balanced incidence matrix, one can decide in polynomial time whether (1) has a solution and construct a map when one exists.
Proof. Take from Lemma 7. We first show that we may require to be a tree neighbor of . Suppose some label uses as its image at distance greater than one. In the component of containing that label, let be the neighbor of . Redirect to all choices of from that component, except the choice of itself.
Consider an affected boundary . If it contains , connectedness implies it also contains , so the change does not introduce an outside image. If it misses , it lies entirely in the component in question. When contains , the new image is internal. When it also misses , every use of in has been replaced by , introducing at most one outside label in place of the previous one. In every case the left side of (1) does not increase. The sum of the distances from labels to their images decreases. Repeating yields the desired map using only tree edges.
Under this restriction, the left side of (1) equals the number of labels in choosing a neighbor outside . In fact, a tree vertex outside a connected subtree has at most one neighbor inside it, so different exits use different outside labels.
Root , and process its vertices after their descendants. For each boundary its top is the vertex closest to the root. At , inspect the boundaries with top . Their contributions from descendants have already been determined. Reject if one of these exceeds its budget. If the contribution equals the budget, must choose a neighbor inside that boundary. Intersect these requirements to obtain a set of feasible neighbors.
If no boundary with top is saturated and has a parent, choose the parent. This cannot violate a boundary with top and costs nothing in every pending boundary containing , since any such boundary also contains the parent. At the root there is no pending boundary containing it, so choose any feasible neighbor.
It remains to justify the choice at a nonroot vertex with a saturated boundary of top . Every feasible neighbor is a child in . Write for the parent of . The memberships of feasible children in the pending boundaries containing are nested. If two feasible children had incomparable memberships, two pending boundaries would contain but not , and but not , respectively. The boundary contains but not . These three rows on columns would form an induced incidence cycle of length six. Choose a feasible child whose membership is largest. It incurs no more cost in any pending boundary than another feasible child.
To see that rejection is valid, start with any feasible map using tree neighbors. Inductively modify its choice at each processed vertex to match the algorithm. The budgets of all boundaries with top at that vertex remain satisfied. Every pending boundary is unchanged or weakly improved, and no previously settled boundary contains the vertex. Hence a feasible map can always follow the greedy decisions. This proves correctness and gives the constructive polynomial algorithm in Algorithm 1.
5.4 Witnessing a specified maximum clique
Theorem 9. Let be strongly chordal and a specified maximum clique of size . There is a polynomial-time algorithm to determine whether has a proper -coloring in which every vertex of has a conflict-free witness. When the answer is yes, the algorithm constructs such a coloring.
Proof. Identify the colors with their representatives in . In a proper -coloring, any witness of a vertex must belong to , because all colors other than already occur on its neighbors in . For each maximal clique , use the boundary and the budget . Empty boundaries impose no restriction. If a coloring supplies the witnesses for , the vertices of must avoid all colors corresponding to . Since they form a clique, this requires .
Conversely, suppose that satisfies all these budgets. Root a clique tree of at . If is disconnected, its clique trees can be joined by edges with empty intersection. A vertex first appears at a unique
Algorithm 1: Witness selection with boundary budgets.
Input: A totally balanced family on , and budgets .
Output: A witness map satisfying (1), or a report of infeasibility.
1 Construct and root the tree from Lemma 7
2 foreach in an order in which descendants precede ancestors do
3 Set
4 foreach for which is the top of do
5 Set
6 if then
7 return infeasible
8 if then
9
10 if then
11 return infeasible
12 Set to a member of contained in the largest number of pending boundaries containing
13 return
clique nearest to the root among the cliques containing it. Its neighbors in are precisely . Indeed, a clique containing and a neighbor has on its path to the root. The running-intersection property then puts in . The converse follows since is a clique.
Process the cliques from the root outward. For each new vertex at , use the palette . Along a root-to-leaf path the sets shrink, so these palettes grow. Thus already colored vertices in use distinct colors in the current palette. The budget gives at least colors in this palette, so we can assign distinct remaining colors to the new vertices. All earlier neighbors of a new vertex lie in . Indeed, their clique subtrees meet the new vertex's subtree, and any such earlier subtree must pass through to meet it. Hence the coloring is proper. At the first appearance of any outside neighbor of , we exclude the color of . This makes a witness in the resulting graph.
Finally, the incidence matrix of the sets is a submatrix of the maximal-clique matrix of . It is totally balanced by strong chordality. Lemma 8 therefore decides the necessary and sufficient conditions and supplies when possible.
Corollary 10. An optimal PCF coloring can be computed in polynomial time on strongly chordal graphs with a maximum clique such that every nonisolated vertex outside has its closed neighborhood contained in that of another vertex. In particular, this applies to strongly chordal clique stars with a maximum central clique, with no restriction on the number of attachments or their budgets.
Proof. The case is immediate. Test by Theorem 9. All other nonisolated vertices have witnesses by closed-neighborhood inclusion in any proper coloring. If the test rejects, use Theorem 5 to construct an optimal coloring with colors. In a clique star each leaf bag is complete to a subset of , and the leaf bags are pairwise anticomplete. Every vertex in a leaf bag is simplicial and has a witness in any proper coloring if it is nonisolated.
5.5 Interacting maximum cliques
The next result also applies when the intersection of the maximum cliques is empty. Write for the union of all maximum cliques of . For a component of , let denote the set of vertices of with at least one neighbor in .
Theorem 11. Let be strongly chordal and suppose that the following hold.
-
Every edge of belongs to a maximum clique of .
-
For each component of , the set is contained in one maximum clique of .
Then an optimal PCF coloring of can be computed in polynomial time. These hypotheses hold when the maximum cliques induce a connected subtree in some clique tree of .
Proof. The cases are immediate, so assume . As before, any witness of in a proper -coloring belongs to every maximum clique containing . For each maximum clique , impose a zero budget for the boundary , forcing . For each maximal clique containing a vertex outside , use boundary and budget . Omit empty boundaries, which impose no constraint.
These latter constraints are necessary. All vertices of belong to one component of , because they form a clique. Let be a maximum clique containing . The sets and lie in , so their union has pairwise different colors. Each vertex in must avoid those colors to preserve properness and the chosen witnesses. Hence . The incidence matrix of all these boundaries is again a submatrix of the maximal-clique matrix of . We can therefore use Lemma 8 to select or reject.
Assume that we obtain . First color properly with colors, which is possible by chordality. For every the chosen is already a witness among its neighbors in . To see this, let be distinct from . By condition 1, the edge lies in a maximum clique. This clique contains by its zero-budget constraint. Properness gives .
Now process each component independently. Choose a simple elimination order of ending at . Insert the vertices of in reverse order while keeping the coloring of fixed. Let be the next vertex, let be its already colored neighbors, and let be a member of with largest closed neighborhood by inclusion in the current induced subgraph of , if is nonempty. All neighbors of outside lie in , so is the full set of already colored neighbors of in . It is a clique.
If has a neighbor in , then . Otherwise and its closed neighborhood contains that of a neighbor of in , so is complete to the -clique , a contradiction. In this case, every affected neighbor of outside is witnessed by after the insertion. This follows from closed-neighborhood inclusion in the current graph on and the fact that such a neighbor has no neighbors outside .
We give a color that avoids both the colors on and the witness colors for . Let be a maximal clique containing . Since all of is already colored, . Consequently, the number of forbidden colors is at most . This ensures an available color. It also preserves every required witness in . The new vertex sees a clique, so it has a witness.
If has no neighbor in , use the insertion rule of Theorem 5. The vertex is outside every maximum clique, so has at most vertices. There is room in the -color palette to avoid at most one extra color in addition to the colors of . If is empty, any color suffices. No witness in is affected in this case.
The construction gives a PCF -coloring. If the budget test rejects, no such coloring exists, and Theorem 5 constructs an optimal -coloring. The tests and all the constructions above are polynomial.
Finally, suppose that the maximum cliques induce a connected subtree of a clique tree. Any branch outside this subtree attaches at a maximum clique . A vertex of occurring in that branch must belong to by the running-intersection property. In particular, any edge with both endpoints in that occurs in a clique of the branch has both endpoints in . This proves condition 1. The clique subtree of a vertex outside lies wholly in one branch, and two adjacent vertices outside have intersecting clique subtrees. Hence a component of lies in one branch and can meet only through its attachment clique. This proves condition 2.
5.6 Why the single-clique tests do not suffice
Even for an interval graph, testing every maximum clique separately by Theorem 9 can give a positive answer at each clique when the graph has no PCF coloring with the clique number of colors. We give an explicit example.
Start with the seven intervals below.
| Vertex | Interval | Vertex | Interval |
|---|---|---|---|
| [-1, 17] | [12, 31] | ||
| [-1, 13] | [16, 31] | ||
| [9, 21] | [14, 15] |
At each of 0, 10, 20, 30 add a group of short intervals, all of radius 1/4 about that point. Denote the groups by , respectively, with sizes 4, 2, 2, 4. The four maximum cliques are
The other maximal cliques are , , and . These lists follow by sweeping the interval endpoints. In particular, the clique number is six.
Here are feasible witness maps for each of the four single-clique tests. In , pair with , and pair the four vertices of into two disjoint pairs. In , pair with and with , and pair the two vertices of . In , pair with and with , and pair the two vertices of . In , pair with and pair the four vertices of into two disjoint pairs. Each pair selects its two members as witnesses for one another. The intersection of a chosen maximum clique with any other maximum clique is a union of these pairs. Its zero budget is therefore met. At any smaller maximal clique, at most one pair is split, so its budget of one is also met.
Nevertheless, must use as a witness in a PCF six-coloring, since . Similarly must use . Since is a neighbor of , the two witness colors and must differ. The five vertices form a clique and must avoid both colors. For this follows because they are neighbors of both and . For and it follows from properness and from the witness condition at the other vertex. The five-clique would then have only four available colors, a contradiction. By Theorem 5, the graph has PCF chromatic number seven. The example isolates a compatibility constraint that is invisible to the single-clique tests.
6 An exact algorithm for strictly chordal graphs
A block graph is a graph in which every block is a clique. We count each bridge as a block of order two and each isolated vertex as a block of order one. A strictly chordal graph is obtained from a block graph by replacing each vertex with a nonempty clique and joining two replacement cliques completely whenever the corresponding vertices are adjacent [6]. In the algorithm we use the quotient obtained by identifying vertices with equal closed neighborhoods in . For , let be the true-twin class represented by .
To see why is a block graph, consider any representation of by clique replacements of a block graph. Each replacement clique is contained in a single true-twin class. Choose one representative of each true-twin class. They come from distinct replacement cliques, so the graph they induce is isomorphic to an induced subgraph of the original block graph. Block graphs are hereditary; hence, this representative graph, which is , is a block graph. For a block of , let be the union of its classes and let . Every clique of is contained in some , so when is nonempty.
Strictly chordal graphs are strongly chordal. Block graphs are chordal and contain no induced sun, since their maximal cliques meet in at most one vertex and a sun contains an induced diamond. Adding a true twin cannot create an induced hole or sun. Neither obstruction has a pair of true twins, so an obstruction after the addition would also occur before it. The characterization of strongly chordal graphs as sun-free chordal graphs gives the inclusion [8].
Theorem 12. Let be a nonempty strictly chordal graph with clique number . Then if the quotient has a vertex with that belongs to two distinct blocks of weight . In all other cases, . Given adjacency lists, Algorithm 2 constructs an optimal coloring in time, where and .
Proof. Suppose and two blocks of weight contain . Distinct blocks of meet in at most one vertex, so and meet only in . In any proper -coloring each of the other colors occurs on a neighbor of in both blocks. Thus has no witness.
Use the palette with when this obstruction occurs and otherwise. Root each block-cut tree of at a block and color its replacement clique injectively. This includes the one-block components, in particular isolated vertices of . When coloring a nonroot block through its parent cut vertex , the already colored vertices of are exactly those in . The new vertices have no neighbors among the earlier vertices outside . Indeed, a block containing such an edge would connect the subtree at to the previously processed blocks through a vertex other than , contrary to the block-cut tree structure.
Two distinct vertices of a class with witness each other in every proper coloring. Every other neighbor of one is adjacent to the other and therefore has a different color. A vertex in a singleton class at a noncut vertex of has a clique neighborhood and hence has a witness whenever it is nonisolated. It remains to supply witnesses to singleton cut vertices.
Consider a cut vertex with , and let be its already colored parent block. At most one block incident with has weight . If a child block has weight , use that child as the supplying block and choose as witness color any color missing from . Such a color exists because . The supplying
Algorithm 2: Optimal proper conflict-free coloring of a strictly chordal graph.
Input: A strictly chordal graph in adjacency lists. Output: An optimal proper conflict-free coloring of .
1 if then 2 return the empty coloring 3 Compute the true-twin classes , their quotient , the blocks of , and the block-cut forest 4 Set for each block and 5 Set if a singleton class belongs to two blocks of weight , and set otherwise 6 foreach component of the block-cut forest do 7 Root it at a block and color the root clique injectively from 8 foreach cut vertex in root-to-leaf order do 9 Let be the parent block of 10 if then 11 if child block of has weight then 12 Let be a color absent from 13 else 14 Set and let be a color on 15 foreach child block of do 16 Preserve the colors on and color injectively from the remaining colors in , excluding if and 17 return the resulting coloring
child uses all colors, so this color appears there exactly once. Otherwise let supply the witness and choose the color of any vertex of . In either case, forbid the selected color in each child block other than the supplying block. Every child subject to the restriction has weight at most , so its coloring extends injectively while keeping the color of . At a cut vertex with the child blocks need no additional restriction.
Each extension preserves properness. At a singleton cut vertex, the selected color occurs once among the neighbors in its supplying block and is absent from all other incident blocks. Since the incident blocks contain all its neighbors, the vertex has a witness. The same palette works in every component. The clique lower bound and the obstruction prove optimality.
6.1 Running time
To compute the classes , start with a single part and refine the partition by each closed neighborhood . For a refinement, group its vertices by their current parts and split each touched part into vertices in and vertices outside it. With linked membership lists, part pointers, and temporary lists of marked vertices, each refinement takes time. The total is . Two vertices are in the same final part exactly when they belong to the same closed neighborhoods, which by symmetry is equivalent to having equal closed neighborhoods. Scan the neighbors of one representative per class to build the quotient, discarding duplicate class identifiers with marks. Find its blocks and the block-cut forest by depth-first search [15]. Block weights and the number of incident blocks of weight at each cut vertex are computed by scanning the block incidences.
To extend a block of weight , mark the colors already assigned to its parent class and the one forbidden color, if present. Scan the palette in order until all new vertices are colored. Before the scan stops, each inspected color is assigned or is one of the marks. At most colors are inspected. After each block is colored, cache the colors of any two distinct vertices if there are two, and one missing color if the block is smaller than the palette. The missing color can be found by marking the colors of the block and inspecting at most palette entries. These cached values give either kind of witness color at a singleton cut vertex in constant time. Timestamps let us reuse the mark array across blocks.
It remains to bound the total weight of the blocks. For a nonisolated vertex of , the number of blocks containing is at most , since each such block contains a different edge incident with . Thus is at most . Each quotient edge accounts for edges of , and . Hence . All the scans and coloring steps therefore take time.
When all replacement cliques are singletons, Theorem 12 recovers the block-graph characterization of Pradhan and Sharma [11]. A separator of two or more true twins needs no witness from either neighboring block, even when both blocks have weight . This yields tractable instances with unbounded clique separators. For example, subdivide every edge of a claw and replace one subdivision vertex by a clique of arbitrary size. The resulting strictly chordal graph contains the subdivided claw as an induced subgraph. In an interval model of the subdivided claw, the three subdivision intervals would be disjoint and meet the center interval. The middle one would lie entirely inside the center interval, so its terminal neighbor could meet it only by meeting the center. Hence these examples lie outside the interval class.
7 Strongly chordal graphs with small clique-tree separators
For a chordal graph, a clique tree has one node for each maximal clique, and the nodes containing any fixed vertex induce a connected subtree. At an edge of a clique tree, the intersection of the two incident cliques separates the vertices on its two sides. We use the maximum size of these intersections in a supplied clique tree, taking for a one-node tree. The clique number is unrestricted.
Theorem 13. Let be a strongly chordal graph on vertices, and suppose that a clique tree of is supplied in which every separator has size at most . Given , one can decide whether has a proper conflict-free -coloring and construct such a coloring when one exists in time. Consequently, for every fixed , an optimal proper conflict-free coloring can be found in polynomial time.
We may work with connected components separately. If , assign distinct colors to all vertices. If , reject by properness. Thus we may assume and use the palette . Counts are always truncated by . This truncation commutes with addition in the sense that .
7.1 The structure of the child separators
Root the clique tree. Fix a clique node and let be its children. Put . For every child, some vertex has exactly as its neighborhood in . To see this, any clique containing is in the child subtree. If a vertex of is adjacent to , there is a clique containing both. By running intersection that vertex is also in , and hence in . Vertices from distinct child subtrees are nonadjacent.
Lemma 14. The incidence graph of the sets on the ground set has no induced cycle of length at least six. The graph on obtained by making every a clique has a tree decomposition with bags of size at most , in which every is contained in a bag. Such a decomposition can be computed in polynomial time.
Proof. An induced incidence cycle of length with would select distinct vertices of and child separators. Together with the corresponding independent vertices , the selected vertices of would induce a -sun. Strong chordality forbids this [8].
We describe how to construct the small bags. A nest point in a set family is a vertex whose incident sets are linearly ordered by inclusion. At every restriction to a subset , the restricted child separator family has a nest point if is nonempty. For a direct proof, form a split graph with one vertex for each restricted set on its clique side and the vertices of on its independent side. Use membership as adjacency between the two sides. An induced sun would have its central clique entirely on the clique side, since an independent-side vertex has a clique neighborhood. Each ray must then lie on the independent side, since a clique-side vertex would see all the central vertices. The sun would therefore give an induced incidence cycle. The split graph is chordal and sun-free, hence strongly chordal. By Farber's simple-vertex characterization [8], it has a vertex whose closed neighborhood consists of vertices with pairwise comparable closed neighborhoods. If that vertex belongs to the independent side, the set vertices adjacent to it have nested neighborhoods in , so it is a nest point. If it belongs to the clique side, all the set vertices have nested neighborhoods in , in which case any vertex of is a nest point.
Repeatedly delete a nest point. In the graph formed by making each a clique, the later neighbors of the deleted vertex are precisely the other vertices of its largest incident restricted set, or are empty. They form a clique and, when nonempty, have size at most . For each deleted vertex, make a bag containing it and its later neighbors. If the later neighbors are nonempty, connect its bag to the bag of the earliest deleted vertex among them. This latter bag contains all its other later neighbors. Connect bags with no parent through an empty bag. Each edge is in the bag of its earlier endpoint, and the bags containing any vertex are connected by the parent links. These bags therefore form a tree decomposition. Each nonempty lies in the bag of its earliest deleted member. Testing whether a point is a nest point takes polynomial time, so the entire construction is polynomial.
7.2 What a subtree communicates to its parent
For a clique node , let be the union of the cliques in its rooted subtree and let be its intersection with its parent clique, taking at the root. The vertices in have no neighbors outside . Our table records the proper colorings of in which every nonisolated vertex of already has a witness. Vertices of are left unchecked.
For every color , record its vector on . At coordinate the entry is of the number of neighbors of in colored . The distinct colors assigned to vertices of are distinguished, one for each vertex of . For the other colors, it is enough to record how many have each of the possible vectors. This is valid because a common permutation of all colors that fixes the distinguished colors preserves every requirement in the subtree. We call these data a signature. A realizable signature is the information passed to the parent. In particular, the signature table at the root is nonempty exactly when a proper conflict-free -coloring exists.
We next show how to compute the table at from the child tables without enumerating all color assignments to the potentially large clique .
7.3 Combining the child signatures at a clique
Fix a palette pool of size for the clique . There is no loss in fixing this pool, since we can permute colors in before passing the signature to the parent. Fix distinct members of as the colors of the vertices of . At the end of the computation every color of will occur on exactly one vertex of .
Use the tree decomposition from Lemma 14 and add to every bag. Its bags now have at most vertices. Root it, and convert it to a nice tree decomposition with leaf and root bags equal to . This can be done by replacing each tree edge by a sequence of single-vertex additions and deletions and using binary join nodes with equal bags. For each child , assign its signature table to a bag containing , and insert a copy of that bag as a factor node. The purpose of that node is to incorporate exactly one signature from the child table.
The following states are used in this local tree decomposition. Its current bag is denoted by , and throughout.
-
For every , store its color . These colors are distinct. For each nonisolated , also store a proposed witness color and the capped number of occurrences of among its neighbors contributed by child factors processed so far. This count excludes vertices of .
-
Distinguish every color named by the data in item 1 or by the fixed colors on . For each distinguished color, store its pool membership, whether it has already been assigned to a forgotten vertex of , and its capped count vector on from processed child factors.
-
For all other colors, store a histogram indexed by pool membership, assignment to a forgotten vertex of , and the count vector on from processed child factors.
A state identifies named colors only by their equality pattern and their recorded attributes. In particular, the histogram entries count unnamed colors, rather than retaining their actual labels. The color of an active vertex cannot already be assigned to a forgotten vertex. A proposed witness color may be the color of another active vertex, a forgotten vertex, or a vertex of not yet introduced.
In a realization of a state, the processed part of the local decomposition has an injective assignment of colors from to its introduced vertices of , and has chosen realizable signatures for the child factors in that part. Each child coloring agrees with the assignment on its separator. The state records exactly the contributions of these child colorings to its witness counters and to the parent count vectors. Every forgotten nonisolated vertex of has passed its witness test, counting one occurrence inside whenever its witness color belongs to . The completed coloring will use the pool bijectively on , so any color of different from the vertex's own color will occur on exactly one of its neighbors in .
7.4 Leaf and introduce nodes
At a leaf, only is present, no colors have been assigned to forgotten vertices, and all counts from child factors are zero. At an introduce node for , choose a color of not used by any active or forgotten vertex. If is nonisolated, choose a witness color different from and initialize its child count to zero. A chosen color may be a distinguished color or may come from a nonempty histogram category. In the latter case, remove one member from the category and give it a distinguished name. The initial witness count is zero because no processed child factor could contain in its separator before is present in the local decomposition.
7.5 Child factor nodes
At the factor for , choose one of its realizable signatures. Map its distinguished colors on to the colors assigned to the vertices of in . For its unnamed colors, enumerate all possible alignments with the remaining local colors. This is done by a contingency table. A row specifies a count-vector category from the child signature. A column specifies either one distinguished local color not already mapped or an unnamed local category. The row and column sums must agree with the numbers of colors of each kind. Such a table represents a bijection because colors within a category can be permuted arbitrarily. The fixed alignment of colors on ensures that the renamed child coloring agrees with there.
For , add the contribution for to its witness counter. For each parent vertex , add the appropriate contribution to coordinate of every color's count vector. All additions are capped at two. The other coordinates are unchanged, since a vertex of has no neighbors in the exclusive part of the child subtree. The contingency table gives the updated histogram by grouping the colors by their new attributes. Colors used in the child outside do not change the record of which colors have been assigned to vertices of .
7.6 Forget nodes
When forgetting a nonisolated vertex , require its child count at color to be zero if , and one otherwise. In the former case its unique occurrence is supplied by another vertex of . In the latter case the witness lies in a child subtree. All child factors involving have been processed when this check is made. Mark as assigned to a forgotten vertex. Any color no longer named by the active data can be returned to the histogram with its current attributes. An isolated vertex needs no witness test.
7.7 Join nodes
The two children have the same active bag. Their equality patterns for the colors and witnesses of the active vertices must agree, along with the prescribed colors on . Align these distinguished colors accordingly and require their pool membership to agree. For the unnamed colors, enumerate contingency tables matching categories from the two children with equal pool membership. Reject any match in which a color has been assigned to a forgotten vertex on both sides. Apply the same test to the distinguished colors. The forgotten vertices in the two subtrees are disjoint, so this is precisely the remaining injectivity constraint for . The assignment flag of a merged color is the union of its two flags. Add the count vectors and active witness counters with truncation. Every compatible contingency table can be realized by permuting the unnamed colors in one child, and that permutation preserves all tests already passed.
At the root of the local decomposition, the active bag is . All vertices of have passed their witness tests. The use of distinct colors from a pool of size ensures that each pool color is assigned to one vertex of . Add one to every coordinate of the parent count vector of each color assigned to , since every such vertex is adjacent to every vertex of . Discard the pool and assignment attributes and retain only the distinguished count vectors and the histogram of the other vectors. This is the signature passed from to its parent.
7.8 Correctness and running time
The transition invariant follows by induction over the local decomposition. The introduce and forget transitions implement precisely the clique-coloring and witness requirements. At a child factor, every feasible child coloring induces one of the enumerated alignments, and each enumerated alignment is realized by a permutation of a child coloring. At a join, after matching the distinguished colors and the unnamed categories, the two partial colorings agree on the common active vertices. No forgotten vertices
Algorithm 3: Exact PCF coloring for bounded clique-tree separator size.
Input: A strongly chordal graph, a clique tree with separator size at most , and a palette of colors.
Output: A proper conflict-free coloring with at most colors, if one exists.
1 Root the clique tree and process its cliques in bottom-up order
2 foreach clique do
3 Form the local tree decomposition of the child separators and add the parent separator to its bags
4 Fix a pool of colors and the colors on
5 Compute local states at introduce, child factor, forget, and join nodes
6 Add the contributions from and record all realizable signatures at
7 Use a realizing state at the root to recover the coloring by backtracking, or report that no coloring exists if there is no such state
of receive the same color across the two pieces. All contributions from distinct child subtrees add, and those contributions include no vertex of . Thus neither a neighbor nor a color assignment is counted twice. Conversely, any coloring realizing a state induces one of the matching tables and a valid state on each side. Since the clique pool is used bijectively at completion, the promised within-clique contribution in every forget test is correct. The table of signatures at is therefore exact. Induction up the original clique tree proves correctness of Algorithm 3. Store the choices for each state, including the contingency tables. Assigning concrete names within each category during backtracking recovers the coloring.
There are distinguished labels at any local node. The number of unnamed categories is at most , from the two pool choices, two assignment flags, and the count vectors. Each histogram entry is at most . The equality patterns, witness counters, and distinguished attributes contribute a factor depending only on , bounded by . A contingency table has entries, each at most . Consequently, the number of states and the time to enumerate transitions at a node are bounded by . There are polynomially many cliques, local bags, and factor nodes, giving the time bound in Theorem 13. To find an optimum, test the palette of size . If it is infeasible, Theorem 5 supplies an optimal coloring with one more color.
If a clique tree is not supplied, the existence of one with separators of size at most can also be tested in polynomial time. On the maximal cliques, give a potential tree edge weight and retain only edges of weight at most . A spanning tree has total weight at most , where is the number of maximal cliques containing . This follows by counting, for each , the tree edges whose endpoints both contain . Equality holds exactly when those cliques induce a connected subtree for every , which is the clique-tree condition. If the retained edges have no spanning tree, then no clique tree with the required separator bound exists. Otherwise, compute a maximum-weight spanning tree and accept it exactly when its weight reaches the bound. This argument can be applied separately in each connected component.
8 Concluding questions
A star already suffices as the host tree for the path-graph hardness result. The constructed graphs can contain an induced sun, which places them outside the strongly chordal class. For strongly chordal graphs, the additive-one bound in Theorem 5 reduces optimization to deciding whether the clique number of colors suffices. We resolve this decision under several conditions on the maximum cliques, for strictly chordal graphs, and for bounded clique-tree separators. The complexity on all strongly chordal graphs, and even on all interval graphs, remains open. It is also open whether the dependence on the separator size can be moved out of the exponent of in Theorem 13.
For chordal bipartite graphs, the hardness proof applies to every fixed palette of size at least four. The complexity of three-colorability under the proper conflict-free requirement remains open on this class. Proposition 4 excludes a three-coloring on nonempty instances of minimum degree at least two. The remaining cases allow leaves, which can supply witnesses to their neighbors.
References
[1] J. Ahn, S. Im, and S. Oum. The proper conflict-free k-coloring problem and the odd k-coloring problem are NP-complete on bipartite graphs. Discrete Applied Mathematics, 377:10–17, 2025.
[2] J. Ahn, L. Jaffke, O. Kwon, and P. T. Lima. Well-partitioned chordal graphs. Discrete Mathematics, 345(10):112985, 2022.
[3] Y. Caro, M. Petruševski, and R. Škrekovski. Remarks on proper conflict-free colorings of graphs. Discrete Mathematics, 346(2):113221, 2023.
[4] B. Courcelle. The monadic second-order logic of graphs. I. Recognizable sets of finite graphs. Information and Computation, 85(1):12–75, 1990.
[5] P. De Caria. A Joint Study of Chordal and Dually Chordal Graphs. PhD thesis, Universidad Nacional de La Plata, 2012.
[6] M. Dumas, A. Perez, and I. Todinca. Polynomial kernels for strictly chordal edge modification problems. In 16th International Symposium on Parameterized and Exact Computation (IPEC 2021), volume 214 of Leibniz International Proceedings in Informatics, pages 17:1–17:16, 2021.
[7] I. Fabrici, B. Lužar, S. Rindošová, and R. Soták. Proper conflict-free and unique-maximum colorings of planar graphs with respect to neighborhoods. Discrete Applied Mathematics, 324:80–92, 2023.
[8] M. Farber. Characterizations of strongly chordal graphs. Discrete Mathematics, 43(2–3):173–189, 1983.
[9] F. Gavril. A recognition algorithm for the intersection graphs of paths in trees. Discrete Mathematics, 23(3):211–227, 1978.
[10] C.-H. Liu. Proper conflict-free list-coloring, odd minors, subdivisions, and layered treewidth. Discrete Mathematics, 347(1):113668, 2024.
[11] D. Pradhan and V. Sharma. Complexity and algorithms for proper conflict-free coloring in graphs. arXiv:2608.10874, 2026.
[12] K. Santra. Proper conflict-free coloring on structured graph classes: Bounds, exact algorithms, and hardness. arXiv preprint arXiv:2611.03906, 2026.
[13] T. J. Schaefer. The complexity of satisfiability problems. In Proceedings of the Tenth Annual ACM Symposium on Theory of Computing, pages 216–226, 1978.
[14] A. Sharma, K. Paul, and A. Pandey. Improved bounds on proper conflict-free coloring of graphs. In Combinatorial Algorithms, volume 16587 of Lecture Notes in Computer Science, pages 500–514. Springer, 2026.
[15] R. Tarjan. Depth-first search and linear graph algorithms. SIAM Journal on Computing, 1(2):146–160, 1972.