Jsoftware
High-Performance Development Platform

WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: all paths in a graph

Re: all paths in a graph

by Raul Miller-4 :: Rate this Message:

| View in Thread

On Thu, Apr 26, 2012 at 4:02 PM, Thomas Costigliola <tcostigl@...> wrote:
> This variation is very nice though! And it shouldn't be too difficult
> to add the leaf self references automatically from G...

Certainly, though that does need code:

NB. assert that </./G will work:
assert (~. -: i.@+&1@{:)@{. G

T=: [^:(0=#@])&.>/(<"0 i.1+>./,G),:</./G

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

 « Return to Thread: all paths in a graph