Shortest Path Solution of Trapezoidal Fuzzy Neutrosophic Graph Based on Circle ‐ Breaking Algorithm

: The shortest path problem is a topic of increasing interest in various scientific fields. The damage to roads and bridges caused by disasters makes traffic routes that can be accurately expressed become indeterminate. A neutrosophic set is a collection of the truth membership, indeterminacy membership, and falsity membership of the constituent elements. It has a symmetric form and indeterminacy membership is their axis of symmetry. In uncertain environments, the neutrosophic number can more effectively express the edge distance. The objectives in this study are to solve the shortest path problem of the neutrosophic graph with an edge distance expressed using trapezoidal fuzzy neutrosophic numbers (TrFNN) and resolve the edge distance according to the score and exact functions based on the TrFNN. Accordingly, the use of a circle ‐ breaking algorithm is proposed to solve the shortest path problem and estimate the shortest distance. The feasibility of this method is verified based on two examples, and the rationality and effectiveness of the approach are evaluated by comparing it with the Dijkstra and Bellman algorithms.


Introduction
The shortest path problem (SPP) is a topic of significant interest in various scientific fields pertaining to flow in additive networks. In traditional problems, the distances among the nodes are determined. The calculation of the minimum cost of the path from every vertex is referred to as the single-source SPP. The objective of the traditional SPP is to obtain the minimum cost path from the starting node to the ending node [1]. However, in uncertain environments, the fuzzy number technique can be used instead. Dubois and Prade solved the problem of the fuzzy shortest path for the first time [2]. The key problem of combinatorial optimization is to determine the shortest path of the digraph. Its main format cannot express the situation when the value of the separation function is found based on the preference of each individual arc [3][4][5]. Samarandache first described the theory of Chinese Intelligence in 1995 and proposed an important mathematical mechanism referred to as the theory of the neutrosophic set (NS) to deal with various inaccuracy, uncertainty, and inconsistency problems. The NS is obtained from three autonomous mappings of the truth membership (t), indeterminacy membership (i), and falsity membership (f), where the range of values is [0−, 1+]. They respectively indicate the degree of affirmation, uncertainty, and negation of the event. Once the uncertainties of the vertex and edge sets have been obtained, the fuzzy graph can be used to address the SPP. However, if uncertainty exists in the relationship between nodes, the NS theory will be a suitable concept for dealing with real-life problems [6]. The shortest path of a network can be found by treating the edge distances as neutrosophic numbers (NN). These may be single-valued, interval-valued, or bipolar [7]. NN can deal with uncertainty more effectively. The NS model can deal with uncertain, inconsistent, and inaccurate information. It is an important mechanism for handling practical science and engineering issues.
The route of emergency rescue is often uncertain owing to the different degrees of damage caused by sudden disasters. In recent years, the SPP of a network graph, whose edge distance is an imprecise number, has attracted increasing attention from scholars globally. Buckley et al. [8] introduced the concept of fuzzy logic into the SPP. Deng et al. [9] proposed a fuzzy Dijkstra algorithm for the SPP in inaccurate environments. Biswas et al. [3] introduced an algorithm to determine the shortest path in an intuitionistic fuzzy environment. Ye and Peng et al. [10][11][12] presented the score function and sorting function of single-valued and trapezoidal fuzzy NN. Broumi et al. [6] used the Dijkstra algorithm to solve the SPP given a neutrosophic background. Nancy and Harish [13] proposed an improved score function and applied it to the decision-making process. Broumi et al. [14] calculated the minimum spanning tree in an interval-valued bipolar neutrosophic setting. Peng and Dai [15] proposed an interval decision-making algorithm based on the neutrosophic environment. Smarandache [16] used trapezoidal fuzzy neutrosophic numbers (TrFNN) to find the shortest path. Wang et al. [17] proposed an SV-trapezoidal neutrosophic preference in decision-making problems. Deli and Şubaş [18] presented the ranking method of single-valued NN and applied it to decision-making problems. Broumi et al. [19] introduced several concepts regarding NSs and analyzed the existing concepts and proposed NN. Broumi et al. [20] proposed an SPP under an interval-valued neutrosophic setting. Bolturk and Kahraman [21] presented a new interval-valued neutrosophic analytic hierarchy process with a cosine similarity measure. Biswas et al. [22] reported on a distance measure using interval TrFNN. Deli [23] presented detailed work on the expansion and contraction of the conventional neutrosophic soft set and later [24] proposed single-valued trapezoidal neutrosophic operators and applied these to decision-making problems. Deli and Şubaş [25] proposed weighted geometric operators with single-valued triangular NN and applied these to decision-making problems. Basset et al. [26] introduced a mixed method of project selection in a neutrosophic environment and subsequently [27] proposed a mid-intelligence group decision-making model with TrFNN. Moreover, Kumar et al. [28] developed an algorithm for solving the SPP in triangular and trapezoidal neutrosophic environments. Broumi et al. [29] presented a study on the neutrosophic shortest path with interval-valued NN on a network. Tan et al. [30] and Broumi et al. [31] proposed the Bellman algorithm for solving the SPP in a neutrosophic graph. Broumi used the original Bellman algorithm to search the shortest path from the start point to the end point, whereas Tan used the improved dynamic programming algorithm for application to the SPP of a trapezoidal fuzzy medium intelligence graph, starting the search from the end point, and the NN was not accurate in the operation process. Chakraborty [32] applied the developed score function and accuracy function of the pentagonal NN to the SPP. Schweizer [33] proposed uncertain factors that could be considered in the process of building the model and developed a formula to transform their model into a neutrosophic representation. Edalatpanah [34] proposed a direct algorithm to solve neutrosophic linear programming, in which the variables and right-hand side were represented by triangular NN. Yang et al. [35] developed an ant colony algorithm for solving the SPP on a network with interval-valued neutrosophic edge distances.
Guan [36] proposed the circle-breaking algorithm in 1975 to solve the minimum spanning tree problem of undirected graphs, and this approach has been widely used in the power and network fields [37]. The circle-breaking algorithm starts from the original graph, continuously deletes the largest edge in the closed circle, and finally obtains a minimum spanning tree. Therefore, when this algorithm is applied to the directed neutrosophic graph, one edge of the longer of the two paths forming the closed circle can be deleted continuously, such that any two points in the neutrosophic graph can be connected while disconnecting the relatively longer path. Finally, the algorithm solves the SPP of the neutrosophic graph. In comparison with the Dijkstra algorithm, the circle-breaking algorithm operates more intuitively. For a complex neutrosophic graph with numerous vertices, distributed computing can be used. Therefore, the shortest path solution method in neutrosophic graphs is evaluated in this study based on the circle-breaking algorithm.

Theoretical Basis
We present several basic concepts for NS and TrFNN, as well as existing ranking functions for TrFNN.

NS
Definition 1. [16]: Let X be the object set, x be any one of these sets, and an NS, A on X , be represented by the true degree function, , respectively, which meet the condition The indeterminacy membership function of a trapezoidal fuzzy NS can be expressed as The falsity membership function of a trapezoidal fuzzy NS can be expressed as , , , a a a a 1  2  3  4   1  1  2  3  4   1  2  3  4 , , , , a a a a are valid for i = 1, 2, 3, and 4; that is, , , , , , , a a a a e e e e  ,     , , , , , , c c c c g g g g  .

Ranking Function
Definition 5. [10]: is a TrFNN and its score function can be expressed as

Neutrosophic Graph Theory
A disaster-stricken area consists of n locations, whose network topology can be abstracted as a directed graph represents n disaster-stricken settlements and the edge set represents a path from node i to node j. According to the geographical location and terrain, the degree of damage is classified based on the disaster and other factors, and the edge distance is represented as a TrFNN n  , where node i is the parent node and node j is the child node. A directed path from node i to node j can be represented as a set of directed edge sequences of the form in a directed graph. The connected nodes differ according to the strength of the directed graph. The number of paths from node i to node j varies.

Method for Solving SPP of Trapezoidal Fuzzy Neutrosophic Graph Based on Circle-Breaking Algorithm
The circle-breaking algorithm can be used to solve the minimum cost spanning tree problem with weighted, connected, and undirected graphs. Furthermore, it can extend the SPP for directed graphs and search for a closed circle in the graphs, which is shared by the same starting and ending nodes. The end of the road is surrounded. A larger path can be found using Equations (9) and (10) as well as Definition 7. Subsequently, the last edge of the larger path is deleted and the above steps are repeated until there are no circles in the figure. The specific steps are as follows: Step 1: Arbitrarily define a closed circle in the trapezoidal fuzzy neutrosophic graph, and find the two paths p1 and p2 surrounding the closed circle, whereby p1 and p2 have a common starting node recorded as N0 and a common ending node recorded as N1.
Step 2: According to Equation (5), all edges of each path are summed. The trapezoidal fuzzy numbers p1 n  and 2 p n  are then obtained, which represent the two paths.
Step 3: Obtain the score function value Step 4: Compare the sizes of p1 n  and 2 p n  according to the ranking function, and find and delete the edge in the larger path whose vertex is N1.
Step 5: Determine whether a closed circle still exists on the map. If so, go to Step 1; if not, the algorithm terminates. At this time, only one path exists from the starting node to the ending node in the neutrosophic graph, which is the shortest path.  In actual programming, determining whether a neutrosophic graph contains closed circles can be considered equivalent to judging whether there are vertices with in-degrees greater than one. If the in-degree of node i is greater than one, the predecessor is searched for based on the two edges pointing to node i. For node sets 1 R and 2 R , there must be a vertex two different paths 1 p and 2 p from k to i. According to the flowchart in Figure 1, the pseudocode for calculating the designed Algorithm 1 circle-breaking algorithm is as follows: Delete the last edge in p2 end while end for

Case Study and Comparative Analysis
In this section, we describe the use of the circle-breaking algorithm to calculate two cases and compare this algorithm with other existing algorithms.

Case Analysis
Example 1. Since 20 July 2020, there has been a series of rainstorms in Wuhan City, China, with the maximum rainfall exceeding 100 mm. Owing to the rainstorms, waterlogging has become a major problem in many parts of Wuhan City, considerably hindering the traffic. According to Wuhan police, some sections of Huangpu Street, Fazhan Avenue, and Jiefang Avenue in Hankou, Wuhan are substantially waterlogged, resulting in traffic being blocked. The water under the light rail bridge of Huangpu Street is half a meter deep, preventing cars from passing and making it difficult to conduct rescue work. In view of the road conditions, it is necessary to identify the best paths to rescue points and provide decision support for the emergency rescue teams of the relevant departments. Figure 2 depicts the topological structure of the road network during this period, and Table 1 presents the side lengths involved. The rescue team of Wuhan city must move from start point ① to end point ⑥ to rescue the trapped residents. Therefore, the objective of this example is to determine the shortest path from ① to ⑥.

Edges
Trapezoidal Fuzzy Neutrosophic Distances The shortest path from ① to ⑥ is solved based on the circle-breaking algorithm in Figure 2. A circle is randomly selected in the figure, the larger of the two paths surrounding the circle is determined, and the last edge of the circle is deleted. This process is repeated until no other circle can be found. Finally, the only path remaining from ① to ⑥ is the shortest path.
Step 1: Circle ①②④③① in Figure 2 and paths that make up the closed circle, as indicated by the thick lines in Figure 3, are found. Step 2: According to Equation (5) , (3, 4), in p1, the neutrosophic graph in Figure 4 can be obtained. Step 5: Closed circle ①②⑤③① in Figure 4 is selected, and paths that make up the closed circle, as indicated by the thick lines in Figure 5, are obtained. Once this task is completed, we return to Step 2. Step 2: According to Equation (5) (3,5), in p3, the neutrosophic graph depicted in Figure 6 can be obtained. Step 5: Another closed circle ②④⑥⑤② in Figure 6 is identified, such that paths  Figure 7. Once this task is completed, we return to Step 2. Step 2: According to Equation (5) (4,6), in p5 is deleted, and the neutrosophic graph is obtained, as depicted in Figure 8. Step 5: In the neutrosophic graph illustrated in Figure 8, it is no longer possible to find a closed circle and the circle-breaking algorithm ends. As indicated by the dotted line in Figure 9, only one path exists from starting node ① to ending node ⑥, which is the shortest path sought. Example 2. The objective of this example is to determine the shortest path from starting node ① to ending node ⑨ in Figure 10. The edge weights are represented as TrFNN, and Table 2 lists the edge weight data. The circle-breaking algorithm is used to solve the SPP.

Edges
Trapezoidal Fuzzy Neutrosophic Distance The removal of the last edge of the larger path in all closed circles using the circle-breaking algorithm enables the generation of the neutrosophic graph, as illustrated in Figure 11. The path indicated by the dotted line is the shortest path from ① to ⑨.

Comparative Analysis of Different Algorithms
1. To illustrate the validity and rationality of the algorithm, the circle-breaking algorithm proposed in this study is compared with the Dijkstra algorithm, and the adjacency matrix is established according to Table 1.
In this case, j) (i, ñ represents the edge weight from node i to node j. The specific values are listed in Table 1. M represents an infinite number, thereby indicating that no direct directed edge connection exists between nodes i and j. Figure 12 illustrates the flowchart of the Dijkstra algorithm, where Vs represents the start point and Ve represents the end point. Table 3 displays the shortest path and the shortest path weights from starting node ① to all nodes using the existing Dijkstra algorithm: the shortest path from node ① to node ⑥ is For the same calculation process, the shortest path and shortest path weights of starting node ① to all nodes in the second example are listed in Table 4. The shortest path from node ① to node ⑨ is

Use of the enumeration algorithm in various examples
According to the adjacency matrix, all of the paths from node ① to node ⑥ are traversed. The distances of the neutrosophic edges of all paths are calculated according to Equation (5), and their score functions and exact functions are listed in Table 5. Table 5. List of all paths from node ① to node ⑥ (example 1). ) (i f is the shortest distance from point 1 to point i. Figure 13 shows the calculation flowchart of the Bellman algorithm in [31]. The calculation process for Case 1 is as follows:

Optional Path Score Function Exact Function
The same calculation process can be used to determine Based on the comparison of the four algorithms, the proposed circle-breaking algorithm is equivalent to the Dijkstra and enumeration algorithms, achieving the same shortest path and shortest path distance. Additionally, the implementation of the algorithm is feasible and reasonable. Moreover, the circle-breaking algorithm is easy to understand, and its implementation is relatively simple.
Furthermore, from the perspective of the time complexity of the algorithm, the Bellman algorithm is a two-layer loop, and the inner loop includes one iteration; therefore, the time complexity of the Bellman algorithm is In contrast, the circle-breaking and Dijkstra algorithms are both two-layer loops with a time complexity of ) ( 2 n O ; however, there is no inevitable sequence for evaluating the in-degree of all vertices in the circle-breaking algorithm. Nevertheless, multithreaded or distributed programming can be employed to reduce the time complexity of the algorithm. Therefore, we use the code of the circle-breaking algorithm; when run using 10 threads, the time complexity of the algorithm can be reduced to   In these figures, the abscissa represents the number of vertices of the neutrosophic graph, and the ordinate represents the running time of the algorithm. As shown in Figures 14 and 15, in the case of the same number of vertices in the neutrosophic graph, the running time of the circle-breaking algorithm is lesser than those of the Dijkstra and Bellman algorithms. Hence, the circle-breaking algorithm is feasible and reasonable.

Conclusions
In this study, we developed a circle-breaking algorithm for solving the SPP of a trapezoidal fuzzy neutrosophic graph and verified the feasibility of the algorithm using an example. Furthermore, we compared the algorithm with the Bellman and Dijkstra algorithms and obtained a consistent shortest path, thereby demonstrating the effectiveness of the algorithm. Finally, we compared the operating efficiencies of the three algorithms and proved that the circle-breaking algorithm could achieve better operating efficiency through multithreaded or distributed programming. In the future, we intend to appropriately sort the in-degrees of the nodes when initializing the data for further efficiency improvement.
Author Contributions: All three authors contributed to this article, and the specific contributions are as follows. L.Y. proposed the idea and mathematical model and wrote the paper. D.L. analyzed the existing work on the research problem and collected relevant data. R.T. reviewed and submitted the paper. All authors have read and agreed to the published version of the manuscript.

Conflicts of Interest:
The authors declare no conflicts of interest.