On Graph Burning and Edge Burning
Abstract
Graph burning is a deterministic, discrete-time process that models how influence or contagion spreads in a graph. Initially, all vertices are unburned. At each round, one new vertex is chosen to burn. Once a vertex is burned, in the next round each of its unburned neighbors become burned. The process ends when all vertices are burned. The burning number of a graph is the minimum number of rounds needed for the process to end. Very recently, a variant called edge burning was introduced, where instead of vertices we burn edges: at each round one new edge is burned. Once an edge is burned, in the next round all its unburned incident edges become burned. The edge burning number is the minimum number of rounds that are needed to burn all the edges. In this paper, we present a systematic study of edge burning and provide some new results for graph burning. First, we show a tight relationship between the edge burning number and the burning number of a given graph: specifically, their absolute difference is at most 1. Moreover, we show that the edge burning number of a graph is equal to the graph burning number of its line graph. On the computation complexity side, we show that the edge burning problem is NP-complete, but can be solved in linear time on paths, split graphs, and cographs. Furthermore, we give an XP algorithm when the edge burning problem is parameterized by the diameter of the input graph and a linear kernel when parameterized by the neighborhood diversity. For the graph burning problem, we provide 2-approximation algorithms when either the solution is part of the input or forced to form a path.
Keywords and phrases:
Burning Number, Graph Burning, Edge Burning, ApproximationCategory:
ResearchFunding:
Giuseppe F. Italiano: Giuseppe F. Italiano was partially supported by MUR, the Italian Ministry for University and Research, under PRIN Project AHeAD (Efficient Algorithms for HArnessing Networked Data).Copyright and License:
2012 ACM Subject Classification:
Theory of computation Algorithm design techniquesAcknowledgements:
The work was done when the second and the third authors were postdocs at LUISS University Rome, Italy.Editors:
Alessio Conte, Andrea Marino, Giovanna Rosone, and Jeffrey Scott VitterSeries and Publisher:
Open Access Series in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Graph burning was introduced as a model to study spread of an influence or a contagion in a social network in [4]. Graph burning is a deterministic process and it advances in discrete time steps called rounds. Input to the graph burning process is a simple, undirected, and unweighted graph. Initially, all the vertices in the graph are marked as unburned. In the first round a vertex is selected, it is marked as burned, and denoted as the first activator. In round , where , an unburned vertex (if such a vertex is available) is selected and marked as burned (called the -th activator). Further, in round , where , all the unburned neighbors of the vertices which are marked as burned till round are marked as burned. The goal in the graph burning process is to mark all the vertices in the graph as burned using the minimum number of rounds. Bonato et al. [4] called the minimum number of rounds required to mark all the vertices as burned in the input graph as burning number of graph . The set of activators selected in every round forms a sequence, which is called the burning sequence of the graph.
Graph burning marks vertices from unburned to burned and selects a sequence of vertices as a sequence of activators. Mondal et al. [16] proposed the process of marking edges instead of vertices and selecting a sequence of edges as a sequence of activators. They referred to this process as edge burning. In other words, edge burning is a discrete deterministic process where, instead marking all the vertices of the input graph from unburned to burned, the goal is to mark all the edges of the graph from unburned to burned. Initially, all the edges in the graph are marked as unburned. In the first round an edge is selected and it is marked as burned: this edge is referred to as the first source. In round , , an unburned edge (if such an edge is available) is selected and marked as burned, and it is referred to as the -th source. Further, in round , , all the unburned neighbors of the edges which are marked as burned till round are marked as burned. The goal in the edge burning process is to mark all the edges in the graph as burned using the minimum number of rounds. The edge burning number of a graph, denoted by , is the minimum number of rounds required to mark all the edges in the graph as burned. The set of sources selected in every round forms a sequence called the edge burning sequence of the graph. Throughout the paper, we will use the notation burn a vertex instead of marking a vertex as burned, burn an edge instead of marking an edge as burned. Similarly, we will refer to burned (unburned) vertex/vertices and to burned (unburned) edge/edges.
Previous work.
The graph burning problem has received significant attention in recent years. Bessy et al. [2] showed that computing the burning number is NP-complete even for trees with maximum degree but optimally solvable in linear time for paths. In addition, this problem remains NP-hard even on caterpillar graphs [10], interval graphs [9] and spider graphs [2], but it is polynomial time solvable on split graphs and cographs [11]. In [5], Bonato et al. presented a very elegant -approximation algorithm for graph burning on general graphs and a -approximation algorithm for trees. Moreover, Mondal et al. [16] proved that graph burning is APX-hard and provided a -approximation algorithm with a different approach from [5]. From the parameterized complexity viewpoint, graph burning is W-hard when parameterized by the burning number, and thus unlikely to admit an FPT algorithm [12]. Furthermore, the problem has been studied under several structural parameters [11, 12].
As for the edge burning problem, Mondal et al. [16] observed that the burning number can be smaller than the edge burning number by giving the wheel graph as an example, as shown in Figure 1 (left): , the wheel graph of 6 vertices, has burning number equal to , and edge burning number equal to . It is easy to see that the edge burning number can be smaller than the burning number, as shown in Figure 1 (right): the graph has burning number equal to , and edge burning number equal to . As pointed out by Mondal et al. [16], an interesting question is to determine the relationship between the burning number and the edge burning number of a given graph.
Our results.
In this paper, we present a systematic study of edge burning and provide some new results for graph burning. First, we address the question posed by Mondal et al. [16] and show that there is indeed a tight relationship between the edge burning number and the burning number of a given graph: specifically, we prove that their absolute difference can be at most 1. In addition, we show that the edge burning number of a graph is equal to the graph burning number of its line graph. The latter result appears to be of broad interest. On the one hand, we use it to establish new upper bounds for the edge burning number using known results for the burning number. On the other hand, it allows us to prove also new results for the burning number, such as the NP-completeness of the graph burning problem on the restricted class of connected claw-free graphs.
On the computation complexity side, we show that the edge burning problem is NP-complete on general graphs. This is not surprising, given the tight relationship that we have proved between the edge burning number and the burning number of a graph. On the positive side, we show that edge burning can be solved in linear time on paths, split graphs, and cographs. We next consider the parameterized complexity of the edge burning problem; first we show a trivial XP algorithm for the edge burning problem when parameterized by the diameter of the graph, followed by a linear kernel when parameterized by the neighborhood diversity.
Next, we focus our attention to two variants of the graph burning problem. The first variant is defined as follows. Consider a network in which one wishes to spread influence in the minimum number of rounds by selecting some nodes as activators. The nodes selected as activators must be operational until the influence reaches every node in the network. Suppose this requirement forces the nodes selected as activator to be connected to an emergency service line. Therefore, all the activator nodes in the network must lie in a path which models the emergency service line. With this motivation, we define a variant of the graph burning problem in which all the activators must be on a path. We call the problem as Graph burning with Activators on a Path (GbAP) problem. Our motivation for the GbAP problem resembles the motivation for studying well-known clustering problems like the -center problem with all the centers on a line [6]. Potential applications include setting up kiosks for medical emergencies, where these kiosks must be connected to an uninterrupted power supply line, in an event that attracts large gatherings and many stalls. Note that the GbAP problem reduces to the graph burning problem when we restrict the graph class to paths, which can be solved optimally in linear time. We show that GbAP problem is NP-complete even for trees with maximum degree ; on the positive side, we present a -approximation algorithm for the GbAP problem on trees.
The second variant was defined by Mondal et al. [16], who considered graph burning with additional advice: more specifically, together with the graph, an (unordered) set of activators used by an optimal solution is provided as input. In [16] it is shown that finding an optimal burning sequence is NP-hard even in this special case. We refer to this variant as the Graph burning with Activators as Input (GbAI) problem. For the GbAI problem, we present a deterministic algorithm that guarantees a -approximation and a randomized algorithm that guarantees better than -approximation. We also show that the GbAI problem is fixed parameter tractable when parameterized by the solution size (the burning number). To put our results in perspective, we recall that for the graph burning problem no better than -approximation is known for general graphs [5, 16] and the problem is W-hard when parameterized by the burning number [12].
Related work.
Independently from our work, Antony et al. [1] very recently studied the relationship between the burning number and the edge burning number and the computational complexity of the edge burning by showing NP-hardness for it. Also, there are some results on edge burning number in very restrictive graphs [13, 14].
Organization of the paper.
The remainder of the paper is organized as follows. We start by introducing some preliminary terminology and definitions in Section 2, while in Section 3 we present our new results on the edge burning problem. Next, we consider our two variants of the graph burning problem: Section 4 deals with graph burning with all activators on a path (GbAP problem), where all activators must be on a path of the input graph, while Section 5 deals with graph burning with known activators (GbAI problem), where a set of activators used by an optimal solution is given as input. Finally, Section 6 lists some concluding remarks and directions for further research.
2 Preliminaries
All graphs considered throughout the paper are simple, undirected and connected, unless explicitly stated otherwise. Given an input graph , we denote by the number of vertices, and by the number of edges. The neighborhood of a vertex of is and the closed neighborhood of is . For , and . For , the subgraph of induced by , , has vertex set , and for each vertex pair from , is an edge of if and only if and is an edge of . We denote the edge burning number of by and the burning number of by . We use to denote a complete graph with vertices and to denote a path with vertices. The complete bipartite graph is also called as claw and a claw-free graph is a graph in which no induced subgraph is a claw. A clique of a graph is a set of pairwise adjacent vertices of the graph and an independent set of a graph is a set of pairwise non-adjacent vertices of the graph. We use the notion of line graph of a graph.
Definition 1.
The line graph of a graph is a graph with the following properties:
-
1.
For every edge in , there is a corresponding vertex in .
-
2.
Two vertices in are adjacent if and only if the corresponding edges in are adjacent.
We define the distance between two edges and as the minimum number of edges between the two edges plus 1. The distance between two vertices and , denoted as , is the length of the shortest path between and (the minimum number of edges). The eccentricity of a vertex , denoted as , is . The diameter of is the maximum length of a shortest path in , that is = . The radius of is . For a vertex , the set denotes the set of vertices at a distance at most , that is .
Problem statements.
Next, we formalize the decision version of the graph burning problem.
We recall here that the set of activators selected in every round forms a sequence, which is called the burning sequence of the graph, and the set of sources selected in every round forms a sequence called the edge burning sequence of the graph.
Graph Burning Input: An undirected graph and an integer . Question: Does have a burning sequence that burns all the vertices of in at most rounds?
Similarly, we formalize the decision version of the edge burning problem.
Edge Burning Input: An undirected graph and an integer . Question: Does have an edge burning sequence that burns all the edges of in at most rounds?
Finally, we present some concepts from parameterized complexity which are essential for our results.
Parameterized complexity.
A problem with input size and parameter is fixed parameter tractable (FPT), if it can be solved in time for some computable function . A kernelization for a parameterized problem is a polynomial time algorithm that maps each instance of a parameterized problem to an instance of the same problem such that is a -instance if and only if is a -instance, and is bounded by for some computable function . The output is called a kernel. The function is said to be the size of the kernel. It is well-known that every decidable parameterized problem is FPT if and only if it admits a kernel. The class XP contains all problems that can be solved in time for some computable function . It is common to build an FPT algorithm or a kernel for a parameterized problem by constructing a series of reduction rules, that is, polynomial algorithms that either solve the problem or produce instances of the problem that, typically, have lesser sizes or lesser values of the parameter. Respectively, it is said that a rule is safe or sound if it either correctly solves the problem or constructs an equivalent instance.
3 Edge Burning Number
In this section we study the edge burning problem. Since in the edge burning problem edges are selected as sources in place of vertices with the objective to burn all the edge instead of the vertices, the immediate question, as posed in [16], that arises is the relationship between the edge burning number and the burning number for a given graph. The examples in Figure 1 show that there are graphs in which the difference between the edge burning number and the burning number is one. In the following theorem we show that the difference between these two numbers is at most for any graph.
Theorem 2.
For any graph without isolated vertices .
Proof.
First, we show that . Given a graph we assume a solution for the graph burning problem of size . This means that there is a burning sequence of activators that burns all the vertices of . Based on we give an edge burning sequence of sources that burns all the edges of in rounds. For the activator of we choose an incident edge to as a source, let be this source. Thus, contains edges of and every one of them is incident to an activator. Observe that the activator burns all the vertices at distance at most , denote all these vertices. Thus, there is a path from to every vertex that contains at most edges. By considering an incident edge to as source for the edge burning problem and by the definition of the distance between two edges, we get that all the edges of the paths between and every vertex will be burned by the source in next rounds. Since this holds for every activator and source , in rounds we have that every vertex of has at least one burned incident edge. Hence, in the next round, , all the unburned edges will be burned.
Next, we show that . Assume a solution for the edge burning problem of size of a given graph . This means that there is an edge burning sequence of sources that burns all the edges of . Based on we give a burning sequence of activators that burns all the vertices of in rounds. For the source of we choose one of the two endpoints as an activator, let be this activator. Thus, contains vertices of , each of them is endpoint of some source of . Let be the set of the edges that are burned by the source . This means that the edges of are at distance at most from . Consider now the corresponding activator . By the definition of the distance between two edges, we get that is at distance at most from every endpoint of the edges in . Thus, we may need one more round to burn the vertices of by using as activator. Notice that this holds for every source and activator . Since the sources in burn all the edges of in rounds, we have that all the vertices of can be burned by in at most rounds. Our next theorem provides another relationship between the edge burning number and the burning number through the notion of line graph.
Theorem 3.
For any graph , = where is the line graph of .
Proof.
Assume that is a -instance for Edge Burning and let be the edge burning sequence for , i.e. . Let also be the set of edges that can be burned by the edges respectively. This means that the edges that belong to the sets of are exactly all the edges of the graph if we ignore the edges . Without loss of generality, let be an edge that belongs to . By the definition of edge burning, the distance between the edges and is at most . Now consider the line graph . Then the edges of the edge burning sequence correspond to some vertices of . We show that the vertices of form a burning sequence with the same order for the graph burning problem, this means . Let be the corresponding vertex in of the edge . Since there is a path with (at most) edges between the edges and , there is a path with (at most) vertices between the vertices and . Thus, we get that will be burned in at most steps. Notice that this holds for every edge source and edge . Hence, the burning number of is at most the edge burning number of , i.e., .
Assume now that is a -instance for graph burning and let be the burning sequence for . With the same argumentation, for every vertex there is some source that burns it in at most steps. In other words, there is a path with at most intermediate vertices in the path from to . This means, there is a path that contains edges between the corresponding edges, and in . Therefore, the edge burning number of is at most the burning number of , i.e., . By combining the above inequalities, we get that . The burning number of a path or a cycle with vertices is known to be by [4]. Thus, using Theorem 3, we get the following bounds.
Corollary 4.
If is a path with edges and vertices then = .
Corollary 5.
If is a cycle with edges and vertices then = .
For a complete graph , , we have the following cases for the edge burning number:
Observe that is just an edge and so . For , by choosing any edge as the first source, all other edges will be burned in the second round for . For , only one edge is not incident to the first source, so we choose this edge as the second source. Thus, . For , observe that there are at least 2 non-incident edges to the first source. Thus, with the same procedure as previously, we need three rounds to burn all the edges. On the other hand, the burning number of , , is always . Note that a simple algorithm for computing the edge burning number on a path can be obtained by adapting the corresponding algorithm to find the burning sequence on paths [3]:
Finding an edge burning sequence on paths.
Let = denote a path with edges and . Let denote an edge burning sequence. We compute the sources as follows.
-
for .
-
if , we get , otherwise .
3.1 NP-Hardness of Edge Burning
In this section, we study the computational complexity of the edge burning problem (Edge Burning). First, observe that given a graph and a sequence of edges as sources we can check in polynomial time if the sequence is a solution for the edge burning. Thus, Edge Burning is in NP. Next, we show that Edge Burning is NP-hard. We obtain our result by using a reduction from the Vertex Cover problem, a well-known NP-complete problem. Vertex Cover: Given graph and an integer . Is there a subset of vertices in of size or less such that every edge of has at least one of its endpoints in ? Our constructions for the NP-hardness are based on [16].
Theorem 6.
Edge Burning is NP-complete.
Proof.
Given an instance of Vertex Cover we construct a graph as follows:
-
for every vertex of , we add two adjacent vertices and in ,
-
for every edge ,
-
–
we add two vertices and in , additionally, we add the edges , and in . We then replace the edge by a path with vertices, where and are the endpoints of the path. Let be the middle vertex of the path.
-
–
we add a path with vertices and make one of its endpoints adjacent to .
-
–
-
we add pairs of adjacent vertices. Every pair is isolated with respect to the rest of the graph.
Notice that can be constructed in polynomial time.
We claim that is a -instance for Vertex Cover if and only if has a burning sequence of length at most .
Assume that has a vertex cover of size at most . We find an edge burning sequence for . First, we add to the edges of that correspond to the vertices of in arbitrary order. We denote this set of edges as . This means in the first rounds all the edges of are burned. After that we choose the isolated edges of as burning sources for . Hence, we need rounds in order to burn these edges. Now we show that the rest edges can be burned within rounds. As we said in the first rounds all the edges of are burned. Moreover, for every edge that does not belong to there is an edge of that is in distance since is vertex cover of . This means all the edges can be burned in the next rounds. Observe also that all the edges between an edge of and an edge are in distance at most from some edge of . Furthermore, the edges of a path are in distance at most from some edge . Thus, all the edges of can be burned in rounds.
For the opposite direction, assume that has a burning sequence of length at most . We show how to build a vertex cover for of size at most . For every edge , we define to be a subgraph of that contains the edges and , all the edges in distance at most either from or , all the edges in the path of to and the edges of the path . For every and for each burning source in it, we check whether the distance between and is smaller than the distance between and . If the former holds then we put in otherwise we put in . We break ties arbitrarily. Next we prove that is a vertex cover of . Assume that there is an edge , where neither nor belongs to . This means that every burning source is closer to some other than and . Thus, does not contain any edge burning source. Observe that the distance between an edge outside of and the last edge of is at least . Hence, we need at least rounds in order to burn the edges of which is strictly larger than . This leads to a contradiction, and so is a vertex cover since for every edge at least one of the endpoints belong to . Finally, since we need rounds to burn the isolated edges, we get that the vertex cover is at most .
By construction, the graph in the proof of Theorem 6 is disconnected. Next, we can adjust the proof of Theorem 6 and show that the Edge Burning problem is also NP-hard on connected graphs. More precisely, let be a graph and let be a vertex of . We extend this graph by adding a pair of adjacent vertices and make the vertex adjacent to of . Observe that the minimum vertex cover of the new graph, , is one more than in , since we have added the edge and so one of the endpoints has to belong to the vertex cover. Let the minimum vertex cover of . Next, we follow the construction of Theorem 6 but instead of using the isolated pair of adjacent vertices, we add a path , where is a sequence of vertices, is a sequence of vertices, and are pairs of adjacent vertices that correspond to the isolated pairs of adjacent vertices of Theorem 6. Notice that the number of the edges of is . By Corollary 4 we get that any edge burning sequence for contains edges.
Again, we wish to show that the extended graph has a vertex cover of size at most if and only if there is an edge burning sequence with at most sources. Observe that any vertex cover in the extended graph contains either or . Without loss of generality assume that belong to vertex cover, otherwise we can swap and . For one direction, we can burn all the edges by burning first the edge , next the remaining edges that correspond to the vertices of the vertex cover and finally the edges of the path by using the algorithm for finding an edge burning sequence on a path previously described. For the other direction, assume that there is an edge burning sequence of size . Then, since the number of the edges of the path is we need sources to burn it. Moreover, the distance between these sources and is . Thus, the remaining sources need to be in , and so, the corresponding vertices will be the vertex cover of size .
Hence, combining Theorems 3 and 6 and since the line graph of a connected graph is a connected claw-free graph, we get the following result.
Theorem 7.
Graph Burning is NP-hard on connected claw-free graphs.
3.2 Algorithms for edge burning on special graphs
The NP-hardness result for the edge burning problem makes it interesting to look for graph classes for which the edge burning problem admits a polynomial-time algorithm. In this section, we provide linear-time algorithms to compute the edge burning number on two graph classes: split graphs and cographs. We start with the class of split graphs. A graph is a split graph if its vertices can be partitioned into an independent set and a clique , where is called a split partition of the graph. It is known that split graphs are self-complementary, that is, the complement of a split graph remains a split graph. First, we present the following observation about the edge burning number on a graph.
Observation 8.
A graph with at least two edges has . Moreover, has if and only if there is an edge such that all the remaining edges are incident to except for at most one of them.
Proof.
The first claim is straightforward since in the first round we can burn only one edge. Assume now that , this means that there are two sources, . If has only the edges and then we have the claim. Assume that there are more than two edges in the graph. Since and is the first source, the edges of are incident to in order to be burned in the second round. Hence, there is at most one edge non incident to and that can be the edge . In the other direction, we assume first there is an edge such that every other edge of the graph is incident to . Then if we burn in the first round then all the other edges will be burned in the second round. Observe that if there is exactly one edge non-incident to we can also burn this edge at the end of the second round. Thus, in both cases the . Using Observation 8, we present an algorithm to compute the edge burning number for split graphs in the following theorem.
Theorem 9.
The edge burning number of a split graph is at most and it can be computed in linear time.
Proof.
Let be a split graph with clique partition . Based on Observation 8, we can check in linear time whether ; otherwise, we show that it must be . In the first round we arbitrarily burn an edge from the clique . In the second round all the incident edges will be burned and we burn again one of the remaining unburned edges. At this point every vertex of the clique has at least one burned incident edge. Thus, in the third round all the edges of the clique will be burned as well as all the edges between the vertices of the clique and the vertices of the independent set. Since there is no edge between the vertices of , all the edges of the graph have been burned. Hence, . Clearly, the above procedure can be implemented in linear time.
Even in the case where the graph is a complete split graph, i.e., every vertex of the independent set is adjacent to every vertex of the clique, the edge burning number is at most , while the burning number of a complete split graph is . For example, see Figure 2.
Next, we consider the class of cographs. Let and be two undirected graphs with . The disjoint union of and is the graph obtained from the union of and , denoted by . The complete join of and is the graph obtained from the union of and and adding edges between every pair of vertices that belong to different graphs, denoted by . A graph is a cograph if it can be generated from single-vertex graphs and recursively applying the disjoint union and complete join operations. By definition, the complement of a cograph is also a cograph. Cographs are exactly the graphs that do not contain chordless paths on vertices, , as induced subgraphs [7], and they can be recognized in linear time [8]. In the following theorem, we present an algorithm to compute the edge burning number for a cograph.
Theorem 10.
The edge burning number of a cograph is at most and it can be computed in linear time.
Proof.
Let be a connected cograph, then the last operation need to be complete join. Let . Using Observation 8 in linear time we can determine if ; otherwise we show that the . We consider as a first source an edge such that and . By definition, is adjacent to every vertex and is adjacent to every vertex , and so, at the end of the second round all the vertices of have at least one burned incident edge. Thus, in the third round all the edges will be burned. The above steps can be implemented in linear time by using a suitable data structure, called cotree [8], (see for e.g., Figure 3). The construction of the cotree of takes time [8].
3.3 Parameterized complexity for edge burning
One way to cope with the NP-hardness of the edge burning problem is to study the problem in the context of parameterized complexity. We start with the following observation.
Observation 11.
For a graph with radius and diameter we have that: .
Proof.
For any graph it is known that [4]. Moreover, by Theorem 2 we have . The observation yields from combining these two results. Based on the observation above, we can obtain a trivial XP algorithm for the edge burning problem parameterized by the diameter of the graph. We compute all the subsets of edges of size at most and for each such subset we check all the permutations. Every permutation can be considered as a sequence for the edge burning problem. Observe that this can be done in time. An XP algorithm has also been given in [12] for the graph burning problem parameterized by the diameter. An interesting direction to explore next is to find a parameter with respect to which the edge burning problem admits an FPT algorithm. We consider graphs with bounded neighborhood diversity and show that the edge burning problem is FPT and admits a linear kernel when parameterized by neighborhood diversity.
The neighborhood diversity has been defined by Lampis [15]. For a graph , two vertices and in have the same type if .
Definition 12.
A graph has neighborhood diversity at most , if there exists a partition of into at most sets, such that all vertices in each set have the same type.
Observe that the vertices of a given type not only have the same (closed) neighborhood in , but also form either a clique or an independent set in . Further, there exists a polynomial time algorithm that finds a minimum partition of into neighborhood types [15]. In the following theorem, we present a linear kernel for the edge burning problem parameterized by the neighborhood diversity of the input graph, similar to [11] for the graph burning problem.
Theorem 13.
Edge burning admits a -kernel, where is the neighborhood diversity of the input graph.
Proof.
Let be a graph with neighbohood diversity, , and let be the type classes of . We show that edge burning admits a -kernel. To do that, we apply one of the following reduction rules for every type class in :
Rule 13.1.
If a class forms a clique in and then we remove all the vertices apart from 5 vertices.
To show that the rule is sound, observe that if forms a clique and contains at least vertices then in at most 3 rounds all the incident edges to the vertices of can be burned. More precisely, if an edge incident to a vertex of is burned, then in the next round all edges of that are incident to that vertex will be burned. Thus, in the following round all the edges of will be burned as well as all the incident edges from others classes to the vertices of . On the other hand, if we set fire on an edge of then in two rounds we have that every vertex of have at least one burned incident edge, and so, in the next round all the rest incident edges to will be burned. Hence, it is enough to keep 5 vertices for such a class since a clique with 5 vertices needs 3 rounds in order to be burned.
Rule 13.2.
If a class forms an independent set in and then we remove all the vertices apart from 3 vertices.
To show that the rule is sound, observe that if we pick an edge incident to a vertex of as a source, then in the next round all the vertices of will have at least one burned incident edge. This is because the endpoint of the source edge that is not in is adjacent to every vertex of . Thus, in the following round all incident edges to the vertices of will be burned. Now, observe that the same holds even if an edge incident to a neighbor of burned, since the vertices of have the same neighborhood. Therefore, it is enough to keep 3 vertices. Finally, Rules 13.1 and 13.2 can be applied in polynomial time and the resulting graph has classes with at most 5 vertices in each class. In the following sections, we present our results on graph burning.
4 Graph burning with all the activators on a path
In this section, we consider our first variant of the graph burning problem in which all activators are on a path in the input graph. We remind the reader that our motivation for considering this variant comes from the scenario in social networks where a set of high performing nodes, termed as activators, must be connected to an emergency service line which enforces all the activators to be on path. Formally, we define the problem as follows.
Definition 14 (Graph burning with Activators on a Path (GbAP)).
The input is a graph . The goal is to design an optimal burning sequence such that all the activators are on a path in .
Note that if we restrict the graph class to paths, then the GbAP problem reduces to the graph burning problem and it is solvable optimally in polynomial time. We first prove that GbAP problem is NP-complete even for trees with degree at most .
4.1 NP-completeness for GbAP
Given a sequence of sources for the GbAP problem for trees, in time we can compute for and verify if . Therefore, GbAP problem for trees is in NP. To show that GbAP problem is NP-hard, we show that there is a polynomial time reduction from the Distinct 3-Partition problem to the GbAP problem on trees with maximum degree . In fact, the reduction presented by Bessy et al. [2] to prove that graph burning is NP-hard for trees with maximum degree also proves that GbAP problem is NP-hard for trees with maximum degree . To prove the NP-hardness result, Bessy et al. [2] presented a polynomial time reduction from the Distinct 3-Partition problem. An instance of the Distinct 3-Partition problem consists of the following: a finite set of positive distinct integers and a positive integer where , and , for . The goal is to decide if there is a partition of into triples such that the elements in each triple add up to . Let . For an instance for the Distinct 3-Partition problem as mentioned above, Bessy et al. [2] constructed a tree consisting of vertices with maximum degree and proved that the given instance of the Distinct 3-Partition problem is an -instance if and only if burning number of is . Further, they proved that because of the construction of , any optimal solution for the graph burning problem must place all the activators on a path in . Therefore, the implication of the reduction in [2] is stronger. It proves that graph burning is NP-hard for trees with maximum degree even in the restricted case when all the activators must be placed on a path. We get the following theorem.
Theorem 15.
GbAP problem is NP-complete for trees with maximum degree three.
4.2 A 2-approximation algorithm for GbAP on trees
We present a -approximation algorithm for the GbAP problem on trees. To design our algorithm, we crucially use the properties of a diametral path and center of a graph. Let be the diameter of a graph . Any path in is called a diametral path if the length of is equal to . A vertex with minimum eccentricity is called center of . When the graph is a tree, the following theorem is well known.
Theorem 16 (Jordan theorem [17]).
A tree has at most centers. If a tree has centers, they must be adjacent.
We first prove the following lemma about diametral paths and centers of a tree.
Lemma 17.
Every diametral path in a tree must contain every center.
Proof.
Let be any diametral path in the tree, be the diameter of the tree, and be a center of the tree. Assume by contradiction that is not contained in . Let and be the two endpoints of the path . Let be a vertex contained in and is at a distance at least from and . Therefore, . Otherwise, it will contradict that the length of the diameter of the tree is . Further, it also implies that the eccentricity of any center for the tree is . Next, we consider the unique path between and in the tree.
-
1.
: Consider the following paths: from to and from to . At least one of the two paths must contain . Without loss of generality, suppose the path from to contains . This implies that . Therefore, . But this contradicts that is a center of the tree because there exists a vertex with .
-
2.
: In this case both the paths, from to and from to , must contain . We consider the following two scenarios.
-
(a)
Diameter is even: For , we have . Therefore, and it contradicts that is a center.
-
(b)
Diameter is odd: For , consider the for which . Then, . Therefore, and it contradicts that is a center.
-
(a)
Therefore, if is a center of the tree and is any diametral path of the tree, then must contain . Hence the lemma. Next we make the following observation about two paths on a tree.
Observation 18.
Let and be two paths in a tree and and are not vertex disjoint. Then all the common vertices between and induce a path and is a subpath of and . Note that may contain only one vertex.
Proof.
The proof follow immediately from the fact that a tree is an acyclic graph. Otherwise, if the common vertices do not form an induced path, then a subset of vertices belonging to only , a subset of vertices belonging to only , and a subset of vertices common to and form a cycle. Furthermore, since the common vertices induce a path, it must be a subpath of the two overlapping paths. Before presenting the algorithm, we prove some useful properties.
Lemma 19.
For the GbAP problem on trees, if the tree has at least two diametral paths with only the centers as common vertices, then any optimum solution must place the first activator on one of the centers.
Proof.
Suppose not, and there exists an optimum solution that places the first activator on a vertex other than the centers. Since we are constrained to place all the activators on a path, a center can be burned only in the second or higher rounds. Since we assumed that the diametral paths have only centers as the common vertices and at least two diametral paths are there, the solution would require rounds to burn the tree completely. However, from Lemma 17, every diametral path in a tree must contain every center. Therefore, any solution that places the first activator in a center would require rounds to completely burn the tree, contradicting that the solution we started with is an optimum solution. Hence the Lemma.
Lemma 20.
For trees containing at least two diametral paths with only the centers as common vertices, an optimum solution for the GbAP problem needs rounds.
Proof.
From Lemma 19, the first activator must be on a center. After that the optimum may place the remaining activators on one of the diametral paths. But it will take rounds to burn the other diametral paths. Therefore, any optimum solution takes rounds.
Lemma 21.
For trees there exists an optimum solution for the GbAP problem that places all the activators on a diametral path.
Proof.
Let be a non diametral path and assume that all the activators in an optimum solution are on the path . Let be a diametral path and be the length of the diameter. Note that any optimum solution takes at most rounds. We have the following two cases.
-
1.
and are edge disjoint: In this case, must contain one of the centers, say , and the first activator must be on that center. Otherwise, the solution will take rounds contradicting that it is optimal. Placing all the activators on starting with the first activator on the center takes rounds. Let and be the endpoints of path . Clearly, and . Therefore, placing all the activators on starting with the first activator on the center yields another optimal solution.
-
2.
and are not edge disjoint: From Observation 18, the common vertices between and induce a subpath. Let be that subpath. Let and be the endpoints of . Let be the endpoint of nearest to and be the endpoint of nearest to . Similarity, let be the endpoint of nearest to and be the endpoint of nearest to . Clearly, and . Therefore, placing all the activators on will contribute many rounds in addition to burning the subpath and the rest of the tree. Instead, placing all the activators on will contribute many rounds in addition to burning the subpath and rest of the tree. Thus, placing all the activators on is another optimal solution.
Based on the above lemmas, we present a simple algorithm (Algorithm 1) for the GbAP problem on trees. In the following lemma we prove the approximation guarantee of Algorithm 1.
Lemma 22.
Algorithm 1 finds a 2-approximation for the GbAP problem on trees.
Proof.
From Lemma 19 in the case when the tree has two diametral paths with only the centers as common vertices, the first activator must be on a center. Furthermore, by Lemma 20 any optimum solution takes rounds in this case. Therefore, followed by any arbitrary sequence of vertices on the diametral path as activators is an optimal solution. In the other case, the tree has either a unique diametral path or overlapping diametral paths with length of the common subpath strictly greater than . In that case, Lemma 21 states that there exists an optimum solution that places all the activators on a diametral path. In this case, Algorithm 1 finds a sequence to optimally burn the diametral path and outputs the same sequence as the burning sequence for the GbAP problem on . Let ALG be the number rounds required by Algorithm 1 and let OPT be the number of rounds required by an optimum solution. It is straight forward to argue that after burning the path in rounds, Algorithm 1 will take at most many additional rounds. Therefore, . But number of rounds required by any optimal solution is at least the number of rounds required to burn the diametral path. Therefore, and . Hence, the lemma follows. Finally, in Lemma 23 we prove the running time of Algorithm 1.
Lemma 23.
The running time of Algorithm 1 is
Proof.
In a tree, a diametral path , the length of , and the centers of can be found using two invocations of a breadth first search algorithm. Any diametral path other than must contain at least all the centers. Therefore, the existence of such a path can be checked using another breadth first search from one of the (at most two) centers. Finally, finding an optimal burning sequence on a path takes time. Therefore, the running time of Algorithm 1 is . Combining Lemma 22 and Lemma 23 yields the following theorem.
Theorem 24.
There exists a deterministic 2-approximation algorithm for the GbAP problem on trees with running time .
5 Graph burning with known activators
In this section, we consider our second variant of the graph burning problem where a set of activators used by an optimal solution is given as input. We remind the reader that a motivation to consider this variant is to develop better approximation algorithms or efficient heuristic based algorithms. We call the set of activators used by an optimal algorithm as the optimal activator set. Formally, we define the following variant of the graph burning problem.
Definition 25 (Graph burning with Activators as Input (GbAI)).
The input is a graph and an optimal activator set. The goal is to design an optimal burning sequence.
The GbAI problem is known to be NP-hard [16]. In this section, we present a deterministic -approximation and a randomized better than -approximation algorithm for the GbAI problem. We also show that the GbAI problem is fixed parameter tractable parameterized by the size of the optimal activator set.
5.1 A deterministic 2-approximation algorithm
Let be the optimal activator set given as input. Our approach is to burn the activators in the set in any arbitrary order. A simple argument shows that the above straightforward deterministic approach results in a -approximation for the GbAI problem.
Theorem 26.
GbAI admits a deterministic -approximation algorithm.
Proof.
Let . Let be the number of rounds required by our approach and let be the number of rounds required by an optimum solution. Clearly, . It is easy to observe that after burning the activators in the set , our approach will require at most many additional rounds. Therefore, and . Hence the theorem.
5.2 A randomized better than 2-approximation algorithm
Let be the optimal activator set given as input. Our approach is to select the activators one by one uniformly at random from the set without replacement and burn them. Again, a simple argument shows that the above randomized approach yields a better than -approximation for the GbAI problem.
Theorem 27.
GbAI admits a randomized better than -approximation algorithm.
Proof.
Let . Among the different sequences of the activators in , at least one results in the optimal burning sequence. Therefore, probability that we obtain an optimal burning sequence by sampling uniformly at random without replacements is at least . Let be the number of rounds required by our approach and let be the number of rounds required by an optimum solution. Clearly, . In the case our sampling does not obtain an optimal burning sequence, it is easy to observe that after burning the activators, our approach will require at most many additional rounds. Therefore, In the case our sampling does not obtain an optimal burning sequence, total rounds required is . Hence, and . Hence the theorem.
5.3 GbAI is fixed parameter tractable
Let be the optimal activator set given as input and . Also, let denote the set of all permutations of the elements in . We present Algorithm 2.
Lemma 28.
Algorithm 2 outputs an optimal burning sequence.
Proof.
Let be an optimal burning sequence. Therefore, such a sequence satisfies the condition V. Since Algorithm 2 uses an exhaustive search on the set , it must provide an optimal burning sequence.
Lemma 29.
For an input graph with vertices and an optimal activator set of size , Algorithm 2 takes time.
Proof.
Let be the number of edges and be the number of vertices in graph . Computing the data structure requires a single breadth first search for vertex . Therefore, the first for loop (Line 1 to 5) takes times. Each set is of size at most . The second for loop (Line 6 to 10 in Algorithm 2) takes time for every sequence in the set . Therefore, total time required by the second for loop is . Thus, total running time of Algorithm 2 is . For , running time is = . Hence, the lemma follows. Combining Lemma 28 and Lemma 29 yields the following theorem.
Theorem 30.
The GbAI problem is FPT when parameterized by the size of the optimal activator set.
6 Conclusions
In this paper we have studied the edge burning problem, and provided a collection of interesting results. After showing that it is NP-complete, we have provided linear-time algorithms for split graphs and cographs and we have shown that the problem admits a linear kernel when parameterized by neighborhood diversity. Furthermore, we have shown that the absolute difference between the edge burning number and the burning number for a graph is at most . We believe that this relationship between the edge burning number and the burning number for a graph can be of independent interest. We have also proved another relationship between the edge burning number and the burning number through the line graph and used this relationship to prove several properties of edge burning and graph burning on special graph classes. Our work raises some interesting and perhaps intriguing questions. One interesting direction is to find graph classes for which edge burning and graph burning have different computational complexities, say one problem is NP-hard and the other is polynomially solvable. Are there any such problems? Another interesting direction is to find graph classes for which the edge burning number is exactly the same as the burning number.
References
- [1] Dhanyamol Antony, Anita Das, Shirish Gosavi, Dalu Jacob, and Shashanka Kulamarva. Graph burning: Bounds and hardness, 2025. doi:10.48550/arXiv.2402.18984.
- [2] Stéphane Bessy, Anthony Bonato, Jeannette C. M. Janssen, Dieter Rautenbach, and Elham Roshanbin. Burning a graph is hard. Discret. Appl. Math., 232:73–87, 2017. doi:10.1016/j.dam.2017.07.016.
- [3] Anthony Bonato, Jeannette Janssen, and Elham Roshanbin. How to burn a graph. Internet Mathematics, 12(1-2):85–100, 2016. doi:10.1080/15427951.2015.1103339.
- [4] Anthony Bonato, Jeannette C. M. Janssen, and Elham Roshanbin. Burning a graph as a model of social contagion. In Anthony Bonato, Fan Chung Graham, and Pawel Pralat, editors, Algorithms and Models for the Web Graph - 11th International Workshop, WAW 2014, Beijing, China, December 17-18, 2014, Proceedings, volume 8882 of Lecture Notes in Computer Science, pages 13–22. Springer, 2014. doi:10.1007/978-3-319-13123-8_2.
- [5] Anthony Bonato and Shahin Kamali. Approximation algorithms for graph burning. In T. V. Gopal and Junzo Watada, editors, Theory and Applications of Models of Computation - 15th Annual Conference, TAMC 2019, Kitakyushu, Japan, April 13-16, 2019, Proceedings, volume 11436 of Lecture Notes in Computer Science, pages 74–92. Springer, 2019. doi:10.1007/978-3-030-14812-6_6.
- [6] Peter Brass, Christian Knauer, Hyeon-Suk Na, Chan-Su Shin, and Antoine Vigneron. The aligned k-center problem. Int. J. Comput. Geom. Appl., 21(2):157–178, 2011. doi:10.1142/S0218195911003597.
- [7] D.G. Corneil, H. Lerchs, and L.K. Stewart. Complement reducible graphs. Discrete Applied Mathematics, 3:163–174, 1981. doi:10.1016/0166-218X(81)90013-5.
- [8] D.G. Corneil, Y. Perl, and L.K. Stewart. A linear recognition algorithm for cographs. SIAM Journal on Computing, 14:926–934, 1985. doi:10.1137/0214065.
- [9] Arya Tanmay Gupta, Swapnil A Lokhande, and Kaushik Mondal. Burning grids and intervals. In Algorithms and Discrete Applied Mathematics: 7th International Conference, CALDAM 2021, Rupnagar, India, February 11–13, 2021, Proceedings 7, pages 66–79. Springer, 2021. doi:10.1007/978-3-030-67899-9_6.
- [10] Michaela Hiller, Arie MCA Koster, and Eberhard Triesch. On the burning number of p-caterpillars. In Graphs and Combinatorial Optimization: from Theory to Applications: CTW2020 Proceedings, pages 145–156. Springer, 2020.
- [11] Anjeneya Swami Kare and I Vinod Reddy. Parameterized algorithms for graph burning problem. In Combinatorial Algorithms: 30th International Workshop, IWOCA 2019, Pisa, Italy, July 23–25, 2019, Proceedings, pages 304–314. Springer, 2019. doi:10.1007/978-3-030-25005-8_25.
- [12] Yasuaki Kobayashi and Yota Otachi. Parameterized complexity of graph burning. Algorithmica, 84(8):2379–2393, 2022. doi:10.1007/S00453-022-00962-8.
- [13] S. Komala and U. Mary. Burning, edge burning & chromatic burning classification of some graph family. Journal of Discrete Mathematical Sciences and Cryptography, 27(2-B):665–674, 2024.
- [14] S. Komala and U. Mary. Edge burning: Relationship between edge and vertex burning of grid graph. Journal of Dynamics and Control, 8:1–12, 2024.
- [15] Michael Lampis. Algorithmic meta-theorems for restrictions of treewidth. Algorithmica, 64(1):19–37, 2012. doi:10.1007/S00453-011-9554-X.
- [16] Debajyoti Mondal, Angelin Jemima Rajasingh, N. Parthiban, and Indra Rajasingh. Apx-hardness and approximation for the k-burning number problem. Theor. Comput. Sci., 932:21–30, 2022. doi:10.1016/j.tcs.2022.08.001.
- [17] Douglas B. West. Introduction to Graph Theory, page 72. Prentice Hall, Upper Saddle River, N.J., second edition, 2001.
