Format the output of topological-sort
gwking - metabang
gwking at metabang.com
Thu Aug 24 21:07:36 UTC 2017
Thank you Martin,
I missed your original e-mail and Iām glad your solution worked out well for you.
> On Aug 23, 2017, at 12:09 PM, Martin Buchmann <martin.buchmann at googlemail.com> wrote:
>
> Just for the archive and if someone has a similar problem in the future.
>
> Using
>
> (mapcar (lambda (x) (slot-value x 'element))
> '(#<7> #<3> #<1> #<6> #<2> #<8> #<9> #<0>))
>
> I could solve my problem easily.
>
>
>> Am 23.08.2017 um 14:00 schrieb cl-graph-devel-request at common-lisp.net <mailto:cl-graph-devel-request at common-lisp.net>:
>>
>> Send cl-graph-devel mailing list submissions to
>> cl-graph-devel at common-lisp.net <mailto:cl-graph-devel at common-lisp.net>
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> https://mailman.common-lisp.net/listinfo/cl-graph-devel
>> or, via email, send a message with subject or body 'help' to
>> cl-graph-devel-request at common-lisp.net
>>
>> You can reach the person managing the list at
>> cl-graph-devel-owner at common-lisp.net
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of cl-graph-devel digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Format the output of topological-sort (Martin Buchmann)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Tue, 22 Aug 2017 18:17:40 +0200
>> From: Martin Buchmann <martin.buchmann at googlemail.com>
>> To: cl-graph-devel at common-lisp.net
>> Subject: Format the output of topological-sort
>> Message-ID: <0A460DB6-F215-4A31-9688-A1AE4347A923 at gogglemail.com>
>> Content-Type: text/plain; charset=utf-8
>>
>> Hi,
>>
>> thanks for cl-graph! I really helped me to implement a simple algorithm using topological sort in one of my hobby projects. But I was wondering if the output could be pretty-printed somehow. I get the following output at the moment
>>
>> (#<7> #<3> #<1> #<6> #<2> #<8> #<9> #<0>) ā> ā73162890"
>>
>> but would prefer to access the data of the vertex es as strings or numbers directly. I am not very experienced in CL so there might be a way independed from cl-graph but I could find any hint in the user manual.
>>
>> Regards
>> Martin
>>
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> cl-graph-devel mailing list
>> cl-graph-devel at common-lisp.net
>> https://mailman.common-lisp.net/listinfo/cl-graph-devel
>>
>>
>> ------------------------------
>>
>> End of cl-graph-devel Digest, Vol 1, Issue 1
>> ********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-graph-devel/attachments/20170824/3bd3ba7e/attachment.html>
More information about the cl-graph-devel
mailing list