presentation, e.g., grouping on the state of the auto-
maton reduces the memory consumption by half and
results additionally in a small runtime improvement
as less data must be written and read. Reallocation
also avoids spikes in the memory consumption and
therefore reduces peak memory consumption consi-
derably.
In the future, we want to investigate how succinct
data structures affect RPQ evaluation. They are ex-
pected to trade off evaluation time for a very com-
pact representation, e.g., the K
2
-Tree (Brisaboa et al.,
2009), which is a compact adjacency representation.
Another direction we would like to study is the use of
bidirectional traversal instead of unidirectional DFS
and BFS, especially how to detect that both directions
meet each other and how it influences the choice of
intermediate representations. Furthermore, omitting
the check against VIS in some states of the automaton
is an interesting algorithmic variation. Depending on
the query and the data graph it can lead to reduced
memory consumption as less data has to be stored in
VIS, but also to multiple explorations of the same se-
arch states and therefore increased evaluation time.
REFERENCES
Aberger, C. R., Tu, S., Olukotun, K., and R
´
e, C. (2016).
EmptyHeaded: A Relational Engine for Graph Pro-
cessing. In Proceedings of the 2016 International
Conference on Management of Data, SIGMOD ’16,
pages 431–446, New York, NY, USA. ACM.
Angles, R., Arenas, M., Barcel
´
o, P., Boncz, P. A., Fletcher,
G. H. L., Gutierrez, C., Lindaaker, T., Paradies, M.,
Plantikow, S., Sequeda, J., van Rest, O., and Voigt,
H. (2018). G-CORE: A Core for Future Graph Query
Languages. In SIGMOD’18.
Barcelo, P., Hurtado, C., Libkin, L., and Wood, P. (2010).
Expressive Languages for Path Queries over Graph-
structured Data. In PODS ’10, pages 3–14.
Bonifati, A., Martens, W., and Timm, T. (2017). An Analy-
tical Study of Large SPARQL Query Logs. PVLDB,
11(2):149–161.
Brisaboa, N. R., Ladra, S., and Navarro, G. (2009). k2-
Trees for Compact Web Graph Representation. In
Karlgren, J., Tarhio, J., and Hyyr
¨
o, H., editors, SPIRE,
volume 5721 of Lecture Notes in Computer Science.
Springer.
Calvanese, D., De Giacomo, G., Lenzerini, M., and Vardi,
M. Y. (2000). Containment of Conjunctive Regular
Path Queries with Inverse. In KR’00, pages 176–185.
Chambi, S., Lemire, D., Kaser, O., and Godin, R. (2016).
Better bitmap performance with Roaring bitmaps. pa-
ges 709–719.
Deutsch, A. and Tannen, V. (2002). Optimization Properties
for Classes of Conjunctive Regular Path Queries. In
Database Programming Languages, pages 21–39.
Koschmieder, A. and Leser, U. (2012). Regular Path Que-
ries on Large Graphs, pages 177–194.
Lemire, D., Ssi-Yan-Kai, G., and Kaser, O. (2016). Con-
sistently faster and smaller compressed bitmaps with
Roaring.
Raman, R., van Rest, O., Hong, S., Wu, Z., Chafi, H., and
Banerjee, J. (2014). PGX.ISO: Parallel and Efficient
In-Memory Engine for Subgraph Isomorphism. In
GRADES’14, pages 5:1–5:6.
Rudolf, M., Paradies, M., Bornh
¨
ovd, C., and Lehner, W.
(2013). The graph story of the sap hana database. In
BTW, volume 214 of LNI, pages 403–420.
van Rest, O., Hong, S., Kim, J., Meng, X., and Chafi, H.
(2016). PGQL: A Property Graph Query Language.
In GRADES’16, pages 7:1–7:6.
W3C (2013). SPARQL 1.1 Overview. http://www.w3.org/
TR/2013/REC-sparql11-overview-20130321/.
Wood, P. T. (2012). Query Languages for Graph Databases.
SIGMOD Rec., 41(1):50–60.
Yakovets, N., Godfrey, P., and Gryz, J. (2015). WAVEG-
UIDE: Evaluating SPARQL Property Path Queries. In
EDBT’15, pages 525–528.
Analysis of Data Structures Involved in RPQ Evaluation
343