From: "Herwig Lejsek" <herwig.lejsek@gmx.at>
Subject: graphs in ada (combining two generic units referencing each other)
Date: Thu, 1 Aug 2002 16:17:19 +0200
Date: 2002-08-01T16:17:19+02:00 [thread overview]
Message-ID: <3d494242$0$18838$91cee783@newsreader01.highway.telekom.at> (raw)
Hello!
I've some problems programming graphs in ada.
I've declared two generic Units one called simple_node(describing the type
node) and one called simple arc(describing the type arc).
However I need to have type arc to instantiate type node (because of
adjacent lists) and I need to have type node to instantiate type arc (to
define which node the arc is pointing to). But when I want to use both
packages I have to instantiate one first needing the type of the second
generic unit.
Is there any possibility to describe a graph in such a way or do have to
work around keeping nodes and arcs in one generic unit?
Ciao,
Herwig
next reply other threads:[~2002-08-01 14:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-01 14:17 Herwig Lejsek [this message]
2002-08-01 17:05 ` graphs in ada (combining two generic units referencing each other) Frank J. Lhota
2002-08-02 17:45 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox