[mercury-users] Graph Traversal in Mercury

Richard O'Keefe ok at cs.otago.ac.nz
Mon Jul 16 12:00:34 AEST 2012


On 15/07/2012, at 2:39 PM, Charles Shuller wrote:
> I now have need to traverse an arbitrary graph read from a file.
> 
> Do I somehow introduce new predicates at run-time

No, and it's not a good idea in Prolog either.
> 
> Also, what data structures would be good for this: just lists, or something more complex??

You might like to start by trying the 'graph' module that
comes with Mercury.


--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list