We consider the problem of designing a succinct data structure for path graphs, that generalizes interval graphs, on n vertices while efficiently supporting degree, adjacency, and neighbourhood queries. We provide the following two solutions for this problem:1.an nlogn+o(nlogn)-bit succinct data structure that supports adjacency query in O(logn) time, neighbourhood query in O(dlogn) time and finally, degree query in min{O(log2n),O(dlogn)} time where d is the degree of the queried vertex.2.an O(nlog2n)-bit space-efficient data structure that supports adjacency, neighborhood, and degree queries optimally. Central to our data structures is the usage of the heavy path decomposition, followed by careful bookkeeping using an orthogonal range search data structure using wavelet trees among others, which may be of independent interest for designing succinct data structures for other graph classes.
Read full abstract