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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cd5005cccfba0311 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Mon, 05 Feb 2007 14:39:12 -0600 From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Topological Sort Help References: <1170618852.885855.258390@j27g2000cwj.googlegroups.com> <87sldllhpt.fsf@ludovic-brenta.org> <1170707421.136089.281290@l53g2000cwa.googlegroups.com> Date: Mon, 05 Feb 2007 21:39:09 +0100 Message-ID: <87y7ncjq4y.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:2O/sfrrvsVXz3ngGvymL0RB/hhA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 62.235.236.179 X-Trace: sv3-y7s29D6YiKhBdyUw79j+qAzCTmqztUqpGAUAXAefRroN07U7H/hghGUBe396uXSY74ygXBO80Ob6MXq!uvjegBE+xJq1Nc9dIZvhfgMbZqBfhIameP4/37wvaKKXJAT1gul09BkVIwiNEwjHtUNuwqOg32s= X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:8980 Date: 2007-02-05T21:39:09+01:00 List-Id: isaac2004 writes: > well i have this data structure i found online that builds a matrix > from a input file and then creates a graph from the matrix. my goal is > to add and delete edges from this structure, that way i can use the > top search to just direct pointers. here is the algorithm for the > matrix and graph builder The matrix you "found online" is exactly the naive representation that I described. Knowing that it should be easy for you to understand how to add or remove edges, yes? -- Ludovic Brenta.