home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.prolog
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!opal.cs.tu-berlin.de!okp
- From: okp@cs.tu-berlin.de (Oli Paulus)
- Subject: graph-utilities needed
- Message-ID: <XP1582W@mailgzrz.tu-berlin.de>
- Sender: news@mailgzrz.tu-berlin.de (News Manager)
- Nntp-Posting-Host: kit.cs.tu-berlin.de
- Organization: Technical University of Berlin, Germany
- Date: Thu, 13 Aug 1992 12:32:14 GMT
- Lines: 24
-
- Hello,
-
- I'writing a program for my thesis and ran into a graph-problem.
-
- Given a directed graph that may contain arbitrary cycles, represented
- as a list of From-To node tuples, I need to perform two tasks:
-
- - remove all redundant links from the graph
-
- - detect all cycles and 'shrink' them into a single node
-
- Shrinking means that all the nodes in the cycle will be removed
- and a shrinknode will be inserted into the graph, which will be
- connected to all nodes that had a link to any of the cycle's nodes
- before (Was that precise enough?).
-
- I'm using quintus prolog (the predicates I need are not in the
- library), but solutions in any other dialect will do.
-
- I'd greatly appreciate any hints, implementations, pointers to
- literature, newsgroups, ftp-sites or whatsoever you think I could use.
-
-
- Thanks for helping, OliKai
-