Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 439639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:47:39+00:00 2026-05-12T20:47:39+00:00

Suppose I have a set of directed graphs. I need to query those graphs.

  • 0

Suppose I have a set of directed graphs. I need to query those graphs. I would like to get a feeling for my best choice for the graph modeling task. So far I have these options, but please don’t hesitate to suggest others:

  • Proprietary implementation (matrix)
    and graph traversal algorithms.

  • RDBM and SQL option (too space consuming)

  • RDF and SPARQL option (too slow)

What would you guys suggest? Regards.

EDIT: Just to answer Mad’s questions:

  • Each one is relatively small, no more than 200 vertices, 400 edges. However, there are hundreds of them.

  • Frequency of querying: hard to say, it’s an experimental system.

  • Speed: not real time, but practical, say 4-5 seconds tops.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T20:47:40+00:00Added an answer on May 12, 2026 at 8:47 pm

    You didn’t give us enough information to respond with a well thought out answer. For example: what size are these graphs? With what frequencies do you expect to query these graphs? Do you need real-time response to these queries? More information on what your application is for, what is your purpose, will be helpful.

    Anyway, to counter the usual responses that suppose SQL-based DBMSes are unable to handle graphs structures effectively, I will give some references:

  2. Graph Transformation in Relational Databases (.pdf), by G. Varro, K. Friedl, D. Varro, presented at International Workshop on Graph-Based Tools (GraBaTs) 2004;
  3. 5 Conclusion and Future Work

    In the paper, we proposed a new graph transformation engine based on off-the-shelf
    relational databases. After sketching the main concepts of our approach, we carried
    out several test cases to evaluate our prototype implementation by comparing it to
    the transformation engines of the AGG [5] and PROGRES [18] tools.

    The main conclusion that can be drawn from our experiments is that relational
    databases provide a promising candidate as an implementation framework for graph
    transformation engines. We call attention to the fact that our promising experimental
    results were obtained using a worst-case assessment method i.e. by recalculating
    the views of the next rule to be applied from scratch which is still highly inefficient,
    especially, for model transformations with a large number of independent matches
    of the same rule. …

    They used PostgreSQL as DBMS, which is probably not particularly good at this kind of applications. You can try LucidDB and see if it is better, as I suspect.

  4. Incremental SQL Queries (more than one paper here, you should concentrate on ” Maintaining Transitive Closure of Graphs in SQL “): “
  5. .. we showed that transitive closure, alternating paths, same generation, and other recursive queries, can be maintained in SQL if some auxiliary relations are allowed. In fact, they can all be maintained using at most auxiliary relations of arity 2. ..

  6. Incremental Maintenance of Shortest Distance and Transitive Closure in First Order Logic and SQL.
  7. Edit: you give more details so… I think the best way is to experiment a little with both a main-memory dedicated graph library and with a DBMS-based solution, then evaluate carefully pros and cons of both solutions.

    For example: a DBMS need to be installed (if you don’t use an “embeddable” DBMS like SQLite), only you know if/where your application needs to be deployed and what your users are. On the other hand, a DBMS gives you immediate benefits, like persistence (I don’t know what support graph libraries gives for persisting their graphs), transactions management and countless other. Are these relevant for your application? Again, only you know.

  • 0
  • Reply
  • Share
    Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp
    • Report

Sidebar

Related Questions

Suppose that you have to set 12 cookies, would it be better to store
Suppose I have a database like this: This is set up to give role-wise
Suppose I have these domain objects: DataPoint ========= public int Id {get;set;} public int
Suppose I have: class Foo { public String Bar { get; set; } }
Suppose I have the following: public class MyObject { public string Name {get; set;}
Suppose I have public class Product: Entity { public IList<Item> Items { get; set;
I have an asymmetric directed graph with a set of probabilities (so the likelihood
There is a design problem like this. Suppose you have a set of class
Suppose I have a set in SQL like this: Product | Quantity A 1
Suppose I have a set of tuples like this (each tuple will have 1,2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.