For queries 9 to 12 number of nodes and rela-
tions that form valid paths from the starting nodes
to the nodes that represent the result set are given.
From these numbers, one can see that the hyper-graph
model builds shorter paths when compared to the
graph model. These statistics are not provided for the
first 8 queries as these these queries are initiated with
more than one node and the search is not a traversal.
5 CONCLUSION
In this paper, we study the querying performance on
graph modeling in graph databases. More specifically,
given the same data, we compare the querying perfor-
mance under simple graph and hyper-graph models
on Neo4j graph database. The querying performance
is analyzed for 12 different queries. While selecting
the queries, we included both those involve hyper-
edges and those binary edges.
As expected, hyper-graph model leads to higher
storage cost due to the inclusion of additional nodes
to model hyper-edges, which also leads to increase in
number of edges on the overall. However, this brings
an advantage for queries involving multiple type of
nodes. This advantage is most obvious for Query 7
and Query 8 (in Table 4), where the execution time
is considerably reduced, such as to half or quarter.
On the other hand, there are surprising results where
simple graphs perform better for such type of queries,
such as Query 5. For this query, the traversal cost pos-
sibly dominates the execution time for hyper-graph
model due to higher number of nodes.
As a future work, we plan to test the models on
more complex data sets such as news and biological
data sets. These data set contain higher order rela-
tionships compared to the book data set. We also plan
to implement and evaluate the performance of hyper-
graph model on graph database systems that have di-
rect support for hyper-edge construction.
ACKNOWLEDGEMENTS
This work is partially supported by Scientific and
Technological Council of Turkey (TUBITAK) with
grant number 117E566.
REFERENCES
Barber, M. J. and Scherngell, T. (2013). Is the european
r&d network homogeneous? distinguishing relevant
network communities using graph theoretic and spa-
tial interaction modelling approaches. Regional Stud-
ies, 47(8):1283–1298.
Batra, S. and Tyagi, C. (2012). Comparative analysis of re-
lational and graph databases. International Journal of
Soft Computing and Engineering (IJSCE), 2(2):509–
512.
Bu, J., Tan, S., Chen, C., Wang, C., Wu, H., Zhang, L.,
and He, X. (2010). Music recommendation by unified
hypergraph: combining social media information and
music content. In Proceedings of the 18th ACM inter-
national conference on Multimedia, pages 391–400.
ACM.
Emmert-Streib, F., Dehmer, M., and Shi, Y. (2016). Fifty
years of graph matching, network alignment and net-
work comparison. Information Sciences, 346:180–
197.
Frainay, C. and Jourdan, F. (2016). Computational meth-
ods to identify metabolic sub-networks based on
metabolomic profiles. Briefings in bioinformatics,
18(1):43–56.
Hajian, B. and White, T. (2011). Modelling influence in
a social network: Metrics and evaluation. In 2011
IEEE Third International Conference on Privacy, Se-
curity, Risk and Trust and 2011 IEEE Third Interna-
tional Conference on Social Computing, pages 497–
500. IEEE.
Holzschuher, F. and Peinl, R. (2013). Performance of graph
query languages: comparison of cypher, gremlin and
native access in neo4j. In Proceedings of the Joint
EDBT/ICDT 2013 Workshops, pages 195–204. ACM.
Holzschuher, F. and Peinl, R. (2016). Querying a graph
database–language selection and performance consid-
erations. Journal of Computer and System Sciences,
82(1):45–68.
Integrating, A. (2018). Core: Generating a computation-
ally representative road skeleton-integrating aadt with
road structure. In Big Data Analytics and Knowledge
Discovery: 20th International Conference, DaWaK
2018, Regensburg, Germany, September 3–6, 2018,
Proceedings, volume 11031, page 59. Springer.
Jouili, S. and Vansteenberghe, V. (2013). An empirical
comparison of graph databases. In 2013 Interna-
tional Conference on Social Computing, pages 708–
715. IEEE.
Kolomi
ˇ
cenko, V., Svoboda, M., and Ml
`
ynkov
´
a, I. H. (2013).
Experimental comparison of graph databases. In Pro-
ceedings of International Conference on Information
Integration and Web-based Applications & Services,
page 115. ACM.
Lee, J., Han, W.-S., Kasperovics, R., and Lee, J.-H. (2012).
An in-depth comparison of subgraph isomorphism al-
gorithms in graph databases. In Proceedings of the
VLDB Endowment, volume 6, pages 133–144. VLDB
Endowment.
Comparison of Querying Performance of Neo4j on Graph and Hyper-graph Data Model
403