Safety in s-t Paths, Trails and Walks

07/09/2020
by   Massimo Cairo, et al.
0

Given a directed graph G and a pair of nodes s and t, an s-t bridge of G is an edge whose removal breaks all s-t paths of G (and thus appears in all s-t paths). Computing all s-t bridges of G is a basic graph problem, solvable in linear time. In this paper, we consider a natural generalisation of this problem, with the notion of "safety" from bioinformatics. We say that a walk W is safe with respect to a set 𝒲 of s-t walks, if W is a subwalk of all walks in 𝒲. We start by considering the maximal safe walks when 𝒲 consists of: all s-t paths, all s-t trails, or all s-t walks of G. We show that the first two problems are immediate linear-time generalisations of finding all s-t bridges, while the third problem is more involved. In particular, we show that there exists a compact representation computable in linear time, that allows outputting all maximal safe walks in time linear in their length. We further generalise these problems, by assuming that safety is defined only with respect to a subset of visible edges. Here we prove a dichotomy between the s-t paths and s-t trails cases, and the s-t walks case: the former two are NP-hard, while the latter is solvable with the same complexity as when all edges are visible. We also show that the same complexity results hold for the analogous generalisations of s-t articulation points (nodes appearing in all s-t paths). We thus obtain the best possible results for natural "safety"-generalisations of these two fundamental graph problems. Moreover, our algorithms are simple and do not employ any complex data structures, making them ideal for use in practice.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/14/2022

Cut paths and their remainder structure, with applications

In a strongly connected graph G = (V,E), a cut arc (also called strong b...
research
02/24/2020

From omnitigs to macrotigs: a linear-time algorithm for safe walks – common to all closed arc-coverings of a directed graph

A partial solution to a problem is called safe if it appears in all solu...
research
06/26/2020

Computing all s-t bridges and articulation points simplified

Given a directed graph G and a pair of nodes s and t, an s-t bridge of G...
research
08/17/2022

Simplicity in Eulerian Circuits: Uniqueness and Safety

An Eulerian circuit in a directed graph is one of the most fundamental G...
research
02/12/2021

Safety of Flow Decompositions in DAGs

Network flows are one of the most studied combinatorial optimization pro...
research
11/22/2022

Minimum-Cost Temporal Walks under Waiting-Time Constraints in Linear Time

In a temporal graph, each edge is available at specific points in time. ...
research
01/30/2023

A Safety Framework for Flow Decomposition Problems via Integer Linear Programming

Many important problems in Bioinformatics (e.g., assembly or multi-assem...

Please sign up or login with your details

Forgot password? Click here to reset