|Pathologically Eclectic Rubbish Lister|
Re^4: Problem printing return value from a subroutineby zing (Beadle)
|on Oct 04, 2012 at 15:40 UTC||Need Help??|
Hi AM, I changed the code as per your suggestion
But the output is still far from wanted
Let me explain you what is wanted.Consider for example component 2. It has two vertices e,d. Now I want to see if any of the rows from "DATA" is a subset of these points.Now since each of the row of "DATA" has 3 vertices/points,therefore clearly for component two there isnt any induced line from DATA.Therefore there should be anything to print for the subroutine "induced" for this case.
But for component 1,which has vertices as = c,a,b; the first line of "DATA" which is "b c a" gets induced.
Similarly if component=a,b,c,d ; then first two rows of DATA get induced ,as they are both the subset of the component.