Distances in and Layering of a DAG
Abstract
The diameter of an undirected unweighted graph is the maximum value of the distance from any vertex to another vertex for where distance i.e. is the length of the shortest path from to in . DAG, is a directed graph without a cycle. We denote the diameter of an unweighted DAG by . The stretch of a DAG is the length of longest path from to in , for all choices of denoted by . The diameter of an undirected graph can be computed in time by executing breadth first search times. We show that stretch and diameter of a DAG can be computed in time and time respectively. A DAG is balanced if and only if a consistent assignment of level numbers to all vertices is possible. Layering refers to such an assignment. A balanced DAG is defined. An efficient algorithm that either detects whether a given DAG is unbalanced or layers it otherwise is designed with a running time of . \\ Key words: Diameter, directed acyclic graph, longest directed path, graph algorithms, complexity.
Cite
@article{arxiv.1711.03256,
title = {Distances in and Layering of a DAG},
author = {Bhadrachalam Chitturi and Priyanshu Das},
journal= {arXiv preprint arXiv:1711.03256},
year = {2017}
}
Comments
4 Pages. Minor modification in the way affiliation is written. The time complexites of stretch and diameter are reversed. In big O notation V and E are changed to |V| and |E| respectively. The last sentence in the conclusion is rewritten