comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Simple Components (Generic_Directed_Graph)
Date: Mon, 30 Oct 2017 16:46:32 +0100
Date: 2017-10-30T16:46:32+01:00	[thread overview]
Message-ID: <ot7hgm$pva$1@gioia.aioe.org> (raw)
In-Reply-To: ot7enc$k9f$1@gioia.aioe.org

On 2017-10-30 15:58, Victor Porton wrote:

> What's about having multiple graphs for the situation if when A and B are of
> type T then A=B implies A'Access=B'Access?

I don't see how you could create such thing in Ada.

> Maybe it's worth to create an alternative graph type (with every graph being
> a full-fledged object)? However I do not quite understand your logic, maybe
> you are right after all and this is not necessary.

In practical applications where graphs might be useful:

1. There is no graph-wide operations or else they are impossibly 
inefficient.

2. Nodes are normally limited, updated in-place, never copied or moved.

3. Subgraphs are actively used without making copies of the whole graph.

4. Graph structure gets modified (e.g. rotation etc).

In short graphs are not containers, the picture you have in mind.

Consider graphs in the same league as doubly-linked lists.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2017-10-30 15:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-30 10:41 Simple Components (Generic_Directed_Graph) Victor Porton
2017-10-30 11:04 ` Victor Porton
2017-10-30 11:34   ` Dmitry A. Kazakov
2017-10-30 11:23 ` Dmitry A. Kazakov
2017-10-30 14:58   ` Victor Porton
2017-10-30 15:46     ` Dmitry A. Kazakov [this message]
2017-10-30 17:46       ` Dennis Lee Bieber
2017-10-30 20:29         ` Dmitry A. Kazakov
2017-10-30 15:13   ` Victor Porton
2017-10-30 15:54     ` Dmitry A. Kazakov
2017-10-30 18:30   ` Victor Porton
2017-10-30 20:43     ` Dmitry A. Kazakov
2017-10-30 21:20       ` Victor Porton
2017-10-30 22:39         ` Dmitry A. Kazakov
2017-10-31  7:36           ` Simon Wright
2017-10-31  8:16             ` Dmitry A. Kazakov
2017-10-31 11:12           ` Victor Porton
2017-10-31 12:42             ` Dmitry A. Kazakov
2017-10-31 15:07               ` Victor Porton
2017-10-31 15:48                 ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox