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

  • Home
  • SEARCH
  • 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 3273418
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:55:47+00:00 2026-05-17T18:55:47+00:00

I need to implement a data structure in C#/SQL Server that is a little

  • 0

I need to implement a data structure in C#/SQL Server that is a little bit tree and a little bit graph. I can think of how to brute force this, but performance is very important. That is where I need help.

Here are the requirements:

1) There are n root nodes.

2) Each node can have n children.

3) Each node is a list.

4) Each node can be related to another node or to an item in the nodes list.

5) The relations (edges?) have a type. Specifically nodes can have a loose relationship (all books in the library with the same subject), generational relationships (a tweak to recipe), variant relationships (a translation of a book).

6) Each node can have a weight.

I am not very well versed in data structures that aren’t in the standard lexicon (list, tree, hash table, dictionary, etc). So there may be something out there that I am just not aware of. When I google “graph sql server” I get a lot of links about pretty graph controls for reports. Performance is critical, there can potentially be millions of nodes that need to be brought into memory. I’d even take a LMGTFY with a properly crafted query since I seem unable to express what I want. Any starting point would help.

  • 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-17T18:55:48+00:00Added an answer on May 17, 2026 at 6:55 pm

    How about looking into the following CodeProject project:
    http://www.codeproject.com/KB/recipes/DotNet2Datastructures.aspx

    It has a nice Graph<T> Implementation (among others). The unaltered code won’t help with the relations you are specifying, but if you’ll add them yourself it might be a good starting point.

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

Sidebar

Related Questions

I need to implement a data structure that supports insertion deletion and search in
I need to implement an efficient excel-like app. I'm looking for a data structure
I need to implement a bag data structure using the interface java.util.Collection . I'm
I basically need a data structure that works just like a Set , but
I need to import data from a file into a Microsoft SQL Server database.
I need to implement a spatial data structure to store rectangles then be able
I need to implement a custom data structure in assembly. Preferably, it needs to
I need to implement a link list data structure for my molecular dynamics code
I need to implement a mean filter on a data set, but I don't
I need to implement a one-to-one videoconferencing solution server-based, runnable by browser, free (or

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.