Sharing data in a data structure

Fredrik Linder fredrik.linder@REDACTED
Fri Jan 18 18:51:43 CET 2002


Have you considered digraph?
I do not know how well is performs, though.

/Fredrik

----- Original Message -----
From: "Vlad Dumitrescu" <vladdu@REDACTED>
To: <erlang-questions@REDACTED>
Sent: Thursday, January 17, 2002 12:42 PM
Subject: Sharing data in a data structure


> Hi folks!
>
> I just begun a project where the main data structure is a graph that
shares
> a lot of data across branches and also with other graphs. Since we have no
> pointers here :-) the simplest alternative I came up with is to use
indexes
> in a list or table instead. But I am a little worried because there will
be
> a lot of searching when traversing the structure...
>
> My question is: is there another way to do it? Maybe a different paradigm
> may be used, but myself I cannot escape from this one...
>
> Duplicating the data is not acceptable, because it is necessary that a
> change in one place will be reflected everywhere. And it would also result
> in a humungous amount of data.
>
> Thank you in advance. Regards,
> Vlad
>
> _________________________________________________________________
> MSN Photos är det enklaste sättet att dela ut och skriva ut foton:
> http://photos.msn.se/Support/WorldWide.aspx
>
>




More information about the erlang-questions mailing list