Changes between Version 3 and Version 4 of TrianglesAlgorithm


Ignore:
Timestamp:
04/26/10 00:30:16 (9 years ago)
Author:
jberry
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TrianglesAlgorithm

    v3 v4  
    5555= Triangle Visitor = 
    5656 
    57 Upon finding a triangles, the algorithm will extract the three edge id's for the edges in the triangle and pass them to a user-defined function.  That function is the operator() method in a visitor object such as the one defined below.  It is up to the user to determine what data (if any) to store in this object.  The only requirement of the triangle algorithm API is that the operator() must take three edge id's as arguments.  The example below simply extracts the id's of the endpoints of the triangle edges and prints them.  
     57Upon finding a triangle, the algorithm will extract the three edge id's for the edges in the triangle and pass them to a user-defined function.  That function is the operator() method in a visitor object such as the one defined below.  It is up to the user to determine what data (if any) to store in this object.  The only requirement of the triangle algorithm API is that the operator() must take three edge id's as arguments.  The example below simply extracts the id's of the endpoints of the triangle edges and prints them.  
    5858{{{ 
    5959template <class graph>