Michael W Thelen wrote:
>
> I have a question about one of the tests:
>
> [<<END, 1],
> ..... ....
> ..... ...
> .... ....
> ... ...
> .. ..
> END
>
> I had gotten the impression that if a node appeared beside itself on an input
> line, it was an "isolated" node with no ordering relationships. But "..." and
> "...." both appear on lines with ordering relationships.
>
> So I had thought that this would be illegal input, but the test program
> indicates that my program should exit with a non-zero code, as if there were a
> cycle present. Is this legal input, and is the test program correct?
For the case (shown indented to avoid email problems (that may be on my
side)):
.... ....
.... ...
... ....
.. ...
. ..
there is a node name '....' that is both in a relationship and is included
as an "isolated" node. I believe that is legal.
There is a cycle present including .... and ...
so your program should exit with a non-zero code.
--
Rick Klement