AttrComparator
Defined in: argraph.h
Extends: -
Overview:
Concrete implementations of this class are used to compare
two node or edge attributes in order to test for their
compatibility during the matching process. A comparator is installed
using the SetNodeComparator
and SetEdgeComparator
methods of class Graph
.
Notice that the attribute comparators
have to be allocated on heap with new
; once they are installed
they are owned by the graph, which will delete
them when they are no longer needed. So it is an
error to share a comparator across
graphs, as is to use a static or automatic variable
for this purpose.