From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada & Ontology ( OWL,RDF, JSON, dot) Date: Sat, 20 Jul 2013 00:56:38 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: loke.gir.dk 1374299799 1928 69.95.181.76 (20 Jul 2013 05:56:39 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 20 Jul 2013 05:56:39 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:16445 Date: 2013-07-20T00:56:38-05:00 List-Id: "Yannick Duchêne (Hibou57)" wrote in message news:op.w0hmrfoqule2fv@cardamome... Le Tue, 16 Jul 2013 02:35:16 +0200, Randy Brukardt a écrit: > "Dmitry A. Kazakov" wrote in message > news:pgggo3irufxz$.mbvohwd9o6qd.dlg@40tude.net... >> On Sun, 14 Jul 2013 23:36:22 -0700 (PDT), Peter Brooks wrote: >> >>>> Alternatively, is there a good Ada package for handling directed >>>> graphs? >>> >>> Well, it is difficult to provide a universal implementation of graphs. >>> Usually, you would needs a custom implementation. >> >> Right. If your graph doesn't have any cycles (that is, it's a tree),[.] >I believe this was an oops: an acyclic graph is not necessarily a tree. I guess you're right. I was thinking that a "join" would have to necessarily cause a cycle, but that isn't true if both nodes are leafs and there are probably more cases as well. What I *was* thinking is that the multi-way tree that is contained in Ada.Containers supports a lot more structures than just the classic binary tree, and that many (maybe most?) acyclic graphs that you'll encounter in practice can be mapped into it. (I've never needed a more complex graph than a multi-way tree in any of my programs. YMMV.) Randy.