Next Article in Journal
Fracture Process and Failure Mode of Brazilian Discs with Cracks of Different Angles: A Numerical Study
Previous Article in Journal
Classification of Driver Distraction Risk Levels: Based on Driver’s Gaze and Secondary Driving Tasks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Identifying the Shortest Path of a Semidirected Graph and Its Application

1
Department of Computer and Information Science, Raiganj University, Raiganj 733134, India
2
Department of Mathematics, Tamralipta Mahavidyalaya, Tamluk 721636, India
3
Faculty of Transport and Traffic Engineering, University of Belgrade, Vojvode Stepe 305, 11010 Belgrade, Serbia
4
Department of Mathematics, Padima Janakalyan Banipith, Jhargram 721517, India
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(24), 4807; https://doi.org/10.3390/math10244807
Submission received: 19 November 2022 / Revised: 11 December 2022 / Accepted: 15 December 2022 / Published: 17 December 2022

Abstract

:
The basic goal of this research is to find the shortest path of a semidirected graph and apply it to the road network system. In the field of graph theory, networks are described as directed graphs, undirected graphs, or a combination of both. However, in the modern era of computing, several networks, such as social media networks, granular networks, and road transport networks, are not linked to any of the aforementioned network categories and in reality are a hybrid of networks with both directed and undirected interconnections. To better understand the notion of these types of networks, semidirected graphs have been developed to represent such networks. In a semidirect graph, both the directed and undirected edges concepts have been introduced together in a graph. In reality, it has been noted that for every node (source/destination) which is connected to another, some links/connections are directed—i.e., one-way—and some links/connections are undirected—i.e., two-way. Considering that there is no specific direction provided and that two nodes are connected, we have established the concept of an undirected edge as two-way connectivity since this provides for nodes in both ways. In this study, the road network system has been modelled using the concept of a semidirected graph, and the shortest path through it has been determined. For the purposes of illustration, we have used a real transportation road network in this case, and the computed results have been displayed.

1. Introduction

Since the development of the computer, optimal path selection for networks has been given more attention, and computation upgrading and optimization also have progressed over time. Researchers somewhere at time attempting continuously to put the most effective path selection algorithm in operation. For the graphical presentation of any network system, graph theory has taken on an important role. The fundamental idea of graph theory was first introduced by Swiss mathematician Leonhard Euler in the 18th century. Since then, the branch of graph theory has been rapidly evolving. Now, graph theory has several branches of research [1]. When representing a network graphically, the notation of both nodes and edges is important. Although it is presented by an undirected graph, investigating brain networks is one of the key research areas for scientists. The idea that brain networks may be a mixed directional combination of undirected and directed has been established by network researchers and scientists [2]. Another such example is networks of roads; some of them have a direction from source to destination and others have no direction at all. As a result, when a vehicle follows the directed path, it has a specific direction known as the one-way route. However, when a vehicle is moving in an arbitrary route from one point to another, it is logically travelling in both directions, making the arbitrary direction a bidirectional route. In order to represent the road network graphically, it may contain both directed and undirected edges, with the undirected edges logically being bidirectional edges (two-way routes). The mixed graph coloring problem was studied by Ries and Werra in 2008 [3]. It is necessary to keep in mind that mixed graphs usually include both directed and undirected edges. Hermitian adjacency matrices and Hermitian energies of mixed graphs have been studied by Liu and Li [4]. Using the idea of monographs, Abudayah et al. [5] explored mixed graphs and generalized the outcomes from earlier studies on the topic. Mixed adjacency matrixes of a mixed graphs have been studied by Adiga et al. [6]. Notable contributions made by different researchers to the analyses of different graph-related problems are presented in Table 1.
In this study, we took into account semidirected graphs, whose edges can be visualized as both directed and undirected graphs. All undirected edges are first converted into two bidirectional edges for the purpose of determining the shortest path in a semidirect graph, and all pair search techniques are then applied using the Floyd–Warshall algorithm. As we know, the Floyd–Warshall algorithm uses dynamic programming approaches to obtain the optimal solution with a coherent decision. Therefore, for multiple possible solutions, this algorithm is mostly used. Some research, shown in Table 2, discusses the use of the Floyd–Warshall algorithm for determining the best path.
We have modified the Floyd–Warshall algorithm that is currently in use to establish the optimal path (result) of a semidirected graph. The modified Floyd–Warshall algorithm usually equates the distances (intersections) between points from the initial point to the destination point and compares each route alternative to its measuring distance. Every edge in a semidirect graph/network must have a direction in order to apply the proposed methodology. Therefore, we converted the undirected edges into two directed edges before implementing the procedure. In this paper, the road network system has been modelled using the concept of a semidirected graph, and the shortest path through it has been determined. In this case, a practical transportation road network has been adopted for example purposes, and the computed results have been presented.

2. Contributions and Objectives

The contributions and objectives of the proposed research are listed below.
  • We have studied the semidirected graph and implemented it on road/transport networks.
  • We have investigated the optimal shortest path of the semidirected graph.
  • We have modified the Floyd–Warshall algorithm to find a semidirected graph’s shortest path.
  • We have converted the undirected graph into a bidirectional one using the Floyd–Warshall algorithm.
  • We have implemented the Floyd–Warshall algorithm for the bidirectional graph.
  • A real case study has been considered and solved for illustration purposes.
  • Conclusions and future direction of the proposed research have been made.

2.1. The Majority of the Work Conducted for This Research Can Be Summarized as Follows

(i) We have studied the semidirected graph and implemented it on road/transport networks. (ii) We have modified the Floyd–Warshall algorithm for finding the shortest path of a semidirected graph. (iii) We used the Floyd–Warshall algorithm for a bidirectional graph to find the optimal shortest path. (vi) A real case study has been considered and solved for experiment purposes.
The rest of the work is presented as follows. Section 2 presents Definition and Preliminaries to develop the entire paper. In order to accomplish the study, Section 3 provides conversion of undirected edges to directional edges. Different types of shortest path are discussed in Section 4. An algorithm for finding shortest path of a semidirected graph is presented in Section 5. Numerical example and illustration with case study have been presented in Section 6. The concluding remarks of the research are included in Section 7. We provide a list of notations and their meanings in a tabular format as below (see Table 3), which are used in the paper to help the reader.

2.2. Definition and Preliminaries

In order to develop the entire paper, we have included some definitions and explanations in this section.
Definition 1.
(Semidirected graph) A graph G = ( V , E d , E u ) is called a semidirect graph, where V is a set of nonempty sets of vertices, E d is a set of directed edges, and E u is a set of undirected edges.
Example 1.
In Figure 1, let V is the set of nonempty vertices or node, V = ( A , B , C , D ) , and E d = ( e 1 , e 2 , e 3 ) , E u = ( e 4 , e 5 )
Definition 2.
(Undirected walk) In a semidirected graph G = ( V , E d , E u ) an undirected walk is a sequence of  v 1 e 1 , v 2 e 2 , v 3 e 3 , e n v n + 1 , where v 1 , v 2 , v 3 , v n + 1 are vertices of the semidirected graph and e 1 , e 2 , e 3 , e n are undirected edges.
Definition 3.
(Directed walk) In a semidirect graph, G = ( V , E d , E u ) an undirected walk is a sequence of v 1 e 1 , v 2 e 2 , v 3 e 3 , e n v n + 1 , where v 1 , v 2 , v 3 , v n + 1 are vertices of the semidirect graph and e 1 , e 2 , e 3 , e n are directed edges.
Definition 4.
(Adjacency matrix of a semidirected graph) An adjacent matrix is a tool that is used to represent the connection of vertices that are adjacent to each other in a finite graph. Therefore, in a finite graph, if there is a connection between a pair of vertices, then it is represented by binary value 1, and if there is no connection between a pair of vertices, then it is represented by binary value 0. The finite graph can be represented by a square matrix A ( G )  where A ( G ) = ( a i j , b i j ) such that
a i j = { 1 ,   if   there   is   an   edge   of   E d   between   i - th   and   j - th   vertices 0 ,   if   there   is   no   edge   between   them .
b i j = { 1 ,   if   there   is   an   edge   of   E u   directed   from   i - thvertex   to   j - th   vertex 0 ,   if   there   is   no   edge   between   them .
Definition 5.
(Edge) An edge (or link) of a network (or graph) is one of the connections between the nodes (or vertices) of the network. Incident edges are edges that share a node. Let,’ e ’ be called the edge if and only if it is a link between a pair of nodes or vertices.
Example 2.
From Figure 1 , e 1 , e 2 , e 3 , e 4 , e 5 are called edges of ( A , C ) , ( A , D ) , ( D , B ) , ( A , B ) , ( C , D ) pairs of vertices.
Definition 6.
(Shortest path) According to graph theory, the shortest path is one that connects two vertices of a graph such that the total weights of the individual edges are kept to a minimum.

3. Conversion of Undirected Edges to Directional Edges

We have now reviewed how to convert a graph’s undirected edges into directed edges.
Definition 7.
(Undirected edges to directed edge) An edge E b is called the directional edge if and only if ( { A , B } , { B , A } ) instead of { A , B } , where E b = ( { A , B } , { B , A } ) , the edge or link between the vertices A , B and B , A . Therefore, if two vertices or nodes are connected by a link or edge and if the edge has no direction, then one can convert the undirected link or edge into a directed edge.Figure 2 represents a semidirected graph with bidirectional edges.
Example 3.
Let, ( A , B ) V and if e 4 be the undirected edge between vertices A , B , then the edge e 4 is called a bidirectional edge if and only if ( { A , B } , { B , A } ) instead of { A , B } . In a similar manner, e 5 can be represented as a bidirectional edge (see Figure 2).
Definition 8.
(Weighted semidirected graph) A semidirect graph G = ( V , E d , E u ) with vertex set V ( G ) , directed edge set E d ( G ) , and undirected edge set E u ( G ) is called a weighted graph if every edge e (directed or undirected) of graph G contains a numerical value w ( e ) . w ( e ) is the weight of the graph.
Example 4.
From Figure 3 , the weights of the graph are { 4 , 7 , 3 , 5 , 5 } , where E b ( G ) = { 5 , 5 } are sets of bidirectional weights and E d ( G ) = { 4 , 7 , 3 } are sets of directed edges.

4. Different Types of Shortest Path

Numerous shortest path issues have been addressed in the literature with regard to theory. Some of these are as follows:
(i)
Single-pair shortest path (SPSP) problem.
(ii)
Single-source shortest path (SSSP) problem
(iii)
Single-destination shortest path (SDSP) problem
(iv)
All pairs’ shortest path (APSP) problem
For the single-pair shortest path (SPSP) problem, we have mentioned the following points.
  • The single-pair shortest path (SPSP) finds the shortest path either between a single pair of nodes or the shortest path between a particular pair of nodes.
  • Find the shortest path from u to v .
  • The well-known A * search algorithm has been used to solve the shortest path problem of a single pair.
We have identified the following for the single source shortest path (SSSP) problem:
  • This is the shortest-path problem, in which the shortest path from a particular source node to all other remaining nodes has been computed.
  • Find the shortest path from source s to all vertices v V .
  • Dijkstra’s algorithm and the Bellman–Ford algorithm are well-known algorithms used to solve the problem for finding the shortest path.
The single-destination shortest path (SDSP) problem can be viewed as follows:
  • The shortest path problem that computes the shortest path from all vertices to one of the target vertices.
  • This problem reduces to a single-source shortest path problem by reversing the direction of each edge in the graph.
  • A well-known Dijkstra’s algorithm has been applied to solve the problem of finding the shortest path to the destination.
The all-pair shortest path (APSP) problem can be summarized as follows:
  • The shortest path problem that computes the shortest path between each pair of vertices.
  • The Floyd–Warshall algorithm and the Johnson algorithm are known algorithms used to solve the problem of finding the shortest path for all pairs.
  • Find the shortest path from u to v for all u .
From Table 4, we analyzed the different types of algorithms, and we found that the different types of shortest path algorithms are applicable to either undirected edges or directed edges. However, our proposed algorithm can apply to both the undirected and directed edges or semidirected edges. In real life, it is found that all networks are not only associated with the only undirected edge or directed edge, but sometimes, the network is also associated with both undirected and directed edges. Our proposed algorithm is very fruitful in evaluating the shortest path in that situation. It can also calculate the shortest path of all pairs of vertices and the time complexity Θ ( n 3 ) .

5. Algorithm for Finding Shortest Path of a Semidirected Graph

Here, we have proposed an algorithm for finding the shortest path of a semidirected graph. In our proposed algorithm, there are two phases. In Phase 1, we have converted unidirectional edge to bidirectional edge, and we applied the Floyd–Warshall algorithm in Phase 2.
Phase 1:
# Algorithm for conversion of unidirectional edge to bidirectional edge
Step 1: Initially choose a Semidirected graph G = ( V , E d , E u ) .
Step 2: Create a set of all unvisited set ( V , E d , E u ) .
Step 3: select all E u
Step 4: update all E u in E b
(i) E u = ( v i , v j ) then E u = ( { v i , v j } , { v j , v i } ) = E b instead of ( v i , v j )
(ii) G = ( V , E d , E u ) G = ( V , E d , E b )
Phase 2:
# Implementation of Floyd-Warshall algorithm for Bidirectional graph
Step 1: Initially take a graph G = ( V , E d , E b )
Step 2: Set D j as a n × n square matrix where j is the number of stages and n no of nodes.
Step 3: Compute D 0 when j = 0 and D 0 = [ d i k ]
where d i k = { d i k       if   there   is   a   directed   edge   between   i   to   k   node   α   if   there   is   no   directed   edge   between   i   to   k   node 0   if   i = k
Step 4: Repeat the following step for D n
For j = 1 , 2 , , n calculate the D j and D j = [ d i k ]
where d i k = { d i k   if   i = k ,   i = j   , k = j min ( d i k , d i j + d i k )       otherwise
Step 5: Return D n and exit

5.1. Pseudocode for Conversion of Unidirectional Edge to Directional Edge

Algorithm bidirectional edge B = ( G , V , E d , E u )
Initialized V , E d , E u
V [ source ] = 0 ;
E d = directed edge ;
E u = undirected edge ;
E b = bidirectional edge ;
if e = E d then print (“draw a directed edge from ( v i , v j ) ”);
else
for v = i   to   j
E u = ( { v i , v j } , { v j , v i } )
E u = E b
print (“draw a bi -directed edge between ( v i , v j ) ”);

5.2. Pseudo-Code for Shortest Path of a Semidirected Graph

Algorithm of shortest path W ( G , V , E d , E b )
n = r o w [ W ] ;
D [ 0 ] = W ;
for k = 1   to   n
for i = 1   to   n
for j = 1   to   n
do d ( k ) i j = min ( d ( k 1 ) i j , d ( k 1 ) i k + d ( k 1 ) k j )
return D n
The Floyd–Warshall algorithm takes time O ( | V | 3 ) , where ( | V | ) is the number of vertices in graph G .

6. Numerical Example and Illustration

For the implementation of shortest path algorithm on a semidirected graph we have considered a network (see Figure 4). From Figure 4, we can write E d = ( { 1 , 2 } { 2 , 3 } { 3 , 4 } ) and E u = ( { 1 , 4 } { 2 , 4 } ) . Now, we have applied our proposed algorithm. After execution of Phase 1, we have an equivalent bidirectional graph, which is depicted in Figure 5.
After Phase 1, proceeded through Phase 2 of our proposed algorithm. Finally, we obtained the sequence of matrices as follows:
D 0 = [ 0 4 α 8 α 0 2 9 α α 0 3 8 9 α 0 ]
D 0 defines the initial distance matrix of the bidirectional graph of a semidirected network, and this matrix represents the direct connection of the edge between two nodes. Undirected connections are represented by α .
D 1 = [ 0 4 α 8 α 0 2 8 α 4 0 3 8 9 α 0 ]
D 1 defines the distance matrix via node 1, compares each node’s distance with the distance of the direct node and via node 1, and replaces it with the minimum distance.
D 2 = [ 0 4 6 8 α 0 2 8 α 4 0 3 8 9 11 0 ]
D 2 defines the distance matrix via node 2, compares the distance of each node with the distance of the direct node and via node 2, and replaces it with the minimum distance.
D 3 = [ 0 4 6 8 α 0 2 5 α 4 0 3 8 9 11 0 ]
D 3 defines the distance matrix via node 3, compares the distance of each node with the distance of the direct node and via node 3, and replaces it with the minimum distance.
And   D 4 = [ 0 4 6 8 17 0 2 5 11 4 0 3 8 9 11 0 ]
D 4 defines the distance matrix via node 4, compares each node’s distance with the distance of the direct node and via node 4, and replaces it with the minimum distance. D 4 gives the final shortest path between every pair of vertices.

A Real Case Study (Survey Results)

In this research, we have considered a case study which has been implemented on a road network (see Figure 6). This road is situated at Durgapur Express Way of the Paschim Burdwan district, West Bengal, India. This is a transport/road network system, and finding of shortest path of this network is based on finding a shortest path of a semidirected graph. For successfully execution of our proposed algorithm, we collected data from five places (the five places are listed in Table 5). These five places have been denoted as a node of a semidirected graph. The network diagram of this semidirected graph are shown in Figure 6. Descriptions of path type and distance are given in Table 6. Descriptions of path name with distance using Google Maps are shown in Figure 7.
Using Phase 1 of our proposed algorithm, we have obtained an equivalent bidirectional graph, which is shown in Figure 8.
After Phase 1, we proceeded through Phase 2 of our proposed algorithm and obtained the sequence of matrices which is as follows:
D 0 = [ 0 11 α α α 11 0 3 8 11 α 3 0 α α α 8 α 0 α α 11 α α 0 ] ,   D 1 = [ 0 11 α α α 11 0 3 8 11 α 3 0 α α α 8 α 0 α α 11 α α 0 ] ,   D 2 = [ 0 11 14 19 22 11 0 3 8 11 14 3 0 11 14 19 8 11 0 19 22 11 14 19 0 ] D 3 = [ 0 11 14 19 22 11 0 3 8 11 14 3 0 11 14 19 8 11 0 19 22 11 14 19 0 ] ,   D 4 = [ 0 11 14 19 22 11 0 3 8 11 14 3 0 11 14 19 8 11 0 19 22 11 14 19 0 ]   and   D 5 = [ 0 11 14 19 22 11 0 3 8 11 14 3 0 11 14 19 8 11 0 19 22 11 14 19 0 ]
where D 0 is the initial matrix of the network.
D 1 gives the shortest distance of all pairs’ vertices via node 1, i.e., via Durgapur City center.
D 2 gives the shortest distance of all pairs’ vertices via node 2, i.e., via Andal More.
D 3 gives the shortest distance of all pairs’ vertices via node 3, i.e., via Andal Station road.
D 4 gives the shortest distance of all pairs’ vertices via node 4, i.e., via Ukhra Station.
And D 5 gives the final shortest distance of all pairs’ vertices via node 5, i.e., via Raniganj Panjabi More.

7. Conclusions

In this proposed paper, we have obtained the shortest path of a semidirected graph, and a real case study has been considered and solved. The proposed method for finding the shortest path of a semidirected graph is very useful for finding the shortest path of a transport network in any highway in the minimum time because all existing shortest path algorithms can evaluate the shortest path from either the directed or the undirected network. However, in our real-life road network system, networks are sometimes associated with unidirectional or directional edges. In these cases, it is very difficult to evaluate the shortest path. Hence, the proposed modified Floyd–Warshall algorithm can solve that problem.
The proposed algorithm is executed in two phases. First phase of the algorithm is able to convert all undirected edges into directed edges. Then, all undirected edges of the semidirected graph are converted into directed edges, and the semidirected graph is converted into a directed graph; then, the second phase of the proposed algorithm is able to identify the shortest path via Floyd–Warshall algorithm. Therefore, this proposed approach is a fruitful implementation for a modern road network system in which both directed and undirected roads have been found, and the proposal of this paper helps to determine the shortest path of a semidirected graph. It will be very helpful for automated driving systems (ADS) in the future. In future work, one could evaluate the congestion of the undirected edges or the bidirectional edges since traversal in both directions may lead to congestion.

Author Contributions

R.D., L.S., S.S., V.S. and T.S. formulated and studied the problem. R.D., L.S., S.S., V.S. and T.S. wrote the first draft of the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Samanta, S.; Pal, M.; Mahapatra, R.; Das, K.; Bhadoria, R.S. A Study on Semi-directed Graphs for Social Media Networks. Int. J. Comput. Intell. Syst. 2021, 14, 1034–1041. [Google Scholar] [CrossRef]
  2. Sporns, O. Graph theory methods: Applications in brain networks. Dialogues Clin. Neurosci. 2018, 20, 111–121. [Google Scholar] [CrossRef] [PubMed]
  3. Ries, B.; De Werra, D. On two coloring problem of a mixed graph. Eur. J. Comb. 2008, 29, 712–725. [Google Scholar] [CrossRef] [Green Version]
  4. Liu, J.; Li, X. Hermitian-adjacency matrices and Hermitian energies of mixed graphs. Linear Algebra Its Appl. 2015, 466, 182–207. [Google Scholar] [CrossRef]
  5. Abudayah, M.; Alomari, O.; Sander, T. Incidence matrices and line graphs of mixed graphs. arXiv 2022, arXiv:2205.05375. [Google Scholar]
  6. Adiga, C.; Rakshith, B.R.; So, W. On the mixed adjacency matrix of a mixed graph. Linear Algebra Its Appl. 2016, 495, 223–241. [Google Scholar] [CrossRef]
  7. Orlin, J.B.; Madduri, K.; Subramani, K.; Williamson, M. A faster algorithm for single source shortest path problem with few distinct positive length. J. Discret. Algorithm 1999, 8, 189–198. [Google Scholar] [CrossRef] [Green Version]
  8. Thorup, M. Undirected single source shortest path in linear time. J. ACM 1999, 46, 362–394. [Google Scholar] [CrossRef]
  9. Katerinis, P.; Tsikopoulosk, N. Edge-connectivity and the orientation of a graph. SUT J. Math. 2004, 41, 1–10. [Google Scholar] [CrossRef]
  10. Bonato, A.; Delic, D.; Wang, C. The Structure and Automorphisms of Semi-directed Graphs. J. Multi-Valued Log. Soft Comput. 2010, 27, 161–173. [Google Scholar]
  11. Wang, Z.H.; Shi, S.S.; Yu, L.C.; Chen, W.Z. An efficient constrained shortest path algorithm for traffic navigation. Adv. Mater. Res. 2012, 356, 2880–2885. [Google Scholar]
  12. Jicy, N.; Mathew, S. Some new connectivity parameters for weighted graphs. J. Uncertain. Math. Sci. 2014, 2014, 1–9. [Google Scholar] [CrossRef] [Green Version]
  13. Mohammed, A.M. Mixed graph representation and mixed graph isomorphism. Gazi Univ. J. Sci. 2017, 30, 303–310. [Google Scholar]
  14. Sotskov, Y.N. Mixed Graph Colorings: A Historical Review. Mathematics 2020, 8, 385. [Google Scholar] [CrossRef]
  15. Zeen El Deen, M.R.; Omar, N.A. Extending of Edge Even Graceful Labeling of Graphs to Strong r-Edge Even Graceful Labeling. J. Math. 2021, 2021, 1–19. [Google Scholar] [CrossRef]
  16. Li, S.; Li, Y. Semi-dynamic shortest-path tree algorithms for directed graphs with arbitrary weights. arXiv 2021, arXiv:1903.01756. [Google Scholar]
  17. Singh, A.; Mishra, P.K. Performance Analysis of Floyd-Warshall Algorithm vs. Rectangular Algorithm. Int. J. Comput. Appl. 2014, 107, 23–27. [Google Scholar] [CrossRef]
  18. Ramadiani; Bukhori, D.; Azainil; Dengen, N. Floyd-Warshall algorithm to determine the shortest path based on android. IOP Conf. Ser. Earth Environ. Sci. 2018, 144, 1–9. [Google Scholar] [CrossRef] [Green Version]
  19. Triana, Y.S.; Syahputri, I. Implementation Floyd-Warshall Algorithm for the Shortest Path of Garage. Int. J. Innov. Sci. Res. Technol. 2018, 3, 871–878. [Google Scholar]
  20. Brodnik, A.; Grgurovic, M.; Pozar, R. Modifications of the Floyd-Warshall algorithm with nearly quadratic expected-time. ARS Math. Contemp. 2021, 22, 1–22. [Google Scholar] [CrossRef]
  21. Sahoo, L.; Sen, S.; Tiwary, K.S.; Samanta, S.; Senapati, T. Modified Floyd–Wars hall’s Algorithm for Maximum Connectivity in Wireless Sensor Networks under Uncertainty. Discret. Dyn. Nat. Soc. 2022, 2022, 1–11. [Google Scholar]
Figure 1. Semidirected graph.
Figure 1. Semidirected graph.
Mathematics 10 04807 g001
Figure 2. Semidirect graph (bidirectional edges).
Figure 2. Semidirect graph (bidirectional edges).
Mathematics 10 04807 g002
Figure 3. Weighted semidirected graph.
Figure 3. Weighted semidirected graph.
Mathematics 10 04807 g003
Figure 4. Semidirect graph of a road network system.
Figure 4. Semidirect graph of a road network system.
Mathematics 10 04807 g004
Figure 5. Equivalent bidirectional graph of semidirected graph.
Figure 5. Equivalent bidirectional graph of semidirected graph.
Mathematics 10 04807 g005
Figure 6. Semidirected network of a road network system.
Figure 6. Semidirected network of a road network system.
Mathematics 10 04807 g006
Figure 7. Description of path name with distance using Google Maps.
Figure 7. Description of path name with distance using Google Maps.
Mathematics 10 04807 g007
Figure 8. Equivalent bidirectional graph of a semidirected graph (Figure 6).
Figure 8. Equivalent bidirectional graph of a semidirected graph (Figure 6).
Mathematics 10 04807 g008
Table 1. Notable contributions implemented by different researchers to the analyses of different graph-related problems.
Table 1. Notable contributions implemented by different researchers to the analyses of different graph-related problems.
ReferencesYearNotable Contributions
Orlin and Madduri [7]1999A faster algorithm for the single-source shortest path problem with a limited number of distinct positive lengths
Thorup [8]1999Shortest path from an undirected single source in linear time
Katerinis and Tsikopoulosk [9]2004Edge connectivity and graph orientation
Bonato et al. [10]2010Characteristics of Semidirected Graphs and Their Automorphisms
Wang et al. [11]2012An effective technique for restricted shortest paths in traffic
Jicy and Mathew [12]2014New connection metrics for weighted graphs
Mohammed [13]2017Mixed graph isomorphism and its representation
Sotskov [14] 2020A Historical Review of Mixed Graph Colorings
Deen et al. [15]2021Extending of Edge Even Graceful Labeling of Graphs to Strong r-Edge Even Graceful Labeling
Li and Li [16]2021Algorithms for directed graphs that use semi-dynamic shortest-path trees and adjustable weights
Table 2. Use of the Floyd–Warshall algorithm for determining the best path.
Table 2. Use of the Floyd–Warshall algorithm for determining the best path.
ReferencesYearContributions
Singh and Mishra [17]2014Performance Comparison of the Floyd–Warshall and Rectangular Algorithms
Ramadiani et al. [18]2018Floyd–Warshall algorithm based on Android to find the shortest path
Triana and Syahputri [19]2018Implementation Shortest Path of Garage Using the Floyd–Warshall Algorithm
Brodnik et al. [20]2022Floyd–Warshall algorithm modifications with approximately quadratic expected-time
Sahoo et al. [21]2022Maximum Connectivity in Wireless Sensor Networks with Uncertainty Using a Modified Floyd–Warshall algorithm
Table 3. Notation and meanings.
Table 3. Notation and meanings.
NotationsMeaning
G = ( V , E d , E u ) Semidirected graph G with vertices V, directed edge Ed, and undirected edge Eu.
v 1 e 1 , v 2 e 2 , v 3 e 3 , e n v n + 1 Undirected sequence of walk.
v 1 e 1 , v 2 e 2 , v 3 e 3 , e n v n + 1 Directed sequence of walk.
A ( G ) Adjacent matrix.
e 1 , e 2 , e 3 , e 4 , e 5 Edges.
E b Bidirectional edge.
E b = ( { A , B } , { B , A } ) ( { A , B } , { B , A } ) are the bidirectional edges.
( { A , B } , { B , A } ) Symbol of bidirectional edge.
w ( e ) Weight of edge.
D j n × n   Square   matrix   and   j   is   the   number   of   stages   and   n Square matrix and j is the number of stages and n no. of a node.
D 0 D 0 is the initial stage when j = 0.
Table 4. Describing different SPAs (shortest path algorithms).
Table 4. Describing different SPAs (shortest path algorithms).
AlgorithmApplied for Undirected EdgeApplied for Directed EdgeApplied for Semidirected EdgeAll SourceTime
Complexity
Dijkstra’s algorithmApplicableApplicableNot ApplicableNot Applicable Θ ( | E | + | V | log | V | )
Bellman–Ford AlgorithmApplicableNot applicableNot applicableNot applicable Θ ( V E )
Floyd–WarshallNot ApplicableApplicableNot ApplicableApplicable Θ ( n 3 )
Identifying the shortest path of a semidirected graph and its applicationApplicableApplicableApplicableApplicable Θ ( n 3 )
Table 5. Description of node.
Table 5. Description of node.
NodePlace Name
1Durgapur City Center
2Andal More
3Andal Station Road
4Ukhra Railway Station
5Raniganj Panjabi More
Table 6. Description of path type and distance.
Table 6. Description of path type and distance.
Path TypeNodePath NameDistance
One-way1–2Durgapur City Center—Andal More11 km
One-way2–5Andal More—Raniganj Panjabi More11 km
Bidirectional3–2Andal Station Road—Andal More3 km
Bidirectional4–2Ukhra Railway Station—Andal More8 km
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Das, R.; Sahoo, L.; Samanta, S.; Simic, V.; Senapati, T. Identifying the Shortest Path of a Semidirected Graph and Its Application. Mathematics 2022, 10, 4807. https://doi.org/10.3390/math10244807

AMA Style

Das R, Sahoo L, Samanta S, Simic V, Senapati T. Identifying the Shortest Path of a Semidirected Graph and Its Application. Mathematics. 2022; 10(24):4807. https://doi.org/10.3390/math10244807

Chicago/Turabian Style

Das, Rakhi, Laxminarayan Sahoo, Sovan Samanta, Vladimir Simic, and Tapan Senapati. 2022. "Identifying the Shortest Path of a Semidirected Graph and Its Application" Mathematics 10, no. 24: 4807. https://doi.org/10.3390/math10244807

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop