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 48103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:13:39+00:00 2026-05-10T16:13:39+00:00

Flat files and relational databases give us a mechanism to serialize structured data. XML

  • 0

Flat files and relational databases give us a mechanism to serialize structured data. XML is superb for serializing un-structured tree-like data.

But many problems are best represented by graphs. A thermal simulation program will, for instance, work with temperature nodes connected to each others through resistive edges.

So what is the best way to serialize a graph structure? I know XML can, to some extent, do it—in the same way that a relational database can serialize a complex web of objects: it usually works but can easily get ugly.

I know about the dot language used by the graphviz program, but I’m not sure this is the best way to do it. This question is probably the sort of thing academia might be working on and I’d love to have references to any papers discussing this.

  • 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. 2026-05-10T16:13:39+00:00Added an answer on May 10, 2026 at 4:13 pm

    How do you represent your graph in memory?
    Basically you have two (good) options:

    • an adjacency list representation
    • an adjacency matrix representation

    in which the adjacency list representation is best used for a sparse graph, and a matrix representation for the dense graphs.

    If you used suchs representations then you could serialize those representations instead.

    If it has to be human readable you could still opt for creating your own serialization algorithm. For example you could write down the matrix representation like you would do with any ‘normal’ matrix: just print out the columns and rows, and all the data in it like so:

       1  2  3 1 #t #f #f 2 #f #f #t 3 #f #t #f 

    (this is a non-optimized, non weighted representation, but can be used for directed graphs)

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

Sidebar

Ask A Question

Stats

  • Questions 114k
  • Answers 114k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I originally looked at this using IsSharedSizeGroup but hit a… May 11, 2026 at 10:18 pm
  • Editorial Team
    Editorial Team added an answer Yes, it does persist beyond the current batch. It doesn't,… May 11, 2026 at 10:18 pm
  • Editorial Team
    Editorial Team added an answer Wordpress uses the Portable PHP password hashing framework. See also… May 11, 2026 at 10:18 pm

Related Questions

I've got a file filled with records like this: NCNSCF1124557200811UPPY19871230 The codes are all
We're embarking on a new middle tier service that will allow internal client systems
Hi I have a small comment shoutbox type cgi process running on a server
This is more of a business-oriented programming question that I can't seem to figure

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.