We don't bite newbies here... much | |
PerlMonks |
Re: How many triangles does your perl script "see"?by Perl Mouse (Chaplain) |
on Oct 27, 2005 at 15:20 UTC ( [id://503373]=note: print w/replies, xml ) | Need Help?? |
What's the puzzle? Is the puzzle to scan the image can reconstruct the graph - and once you've done so, count the triangles? Or can you just give the edges and vertices to the program as input? In the latter case, the puzzle becomes really simple, as any non-trivial 3-cycle will be a triangle. (JH - HF - FJ is a trivial cycle, but JB - BI - IJ isn't).
Perl --((8:>*
In Section
Seekers of Perl Wisdom
|
|