This class describes the concept of Node
, Arc
and Edge
subtypes of digraph and graph types.
Node
and Arc
(or Edge
) types should not derive from the same base class. For Node
you should instantiate it with character 'n'
, for Arc
with 'a'
and for Edge
with 'e'
. #include <lemon/concepts/graph_components.h>
Public Member Functions | |
GraphItem () | |
Default constructor. | |
GraphItem (const GraphItem &) | |
GraphItem (Invalid) | |
Constructor for conversion from INVALID . | |
GraphItem & | operator= (const GraphItem &) |
Assignment operator. | |
GraphItem & | operator= (Invalid) |
Assignment operator for INVALID. | |
bool | operator== (const GraphItem &) const |
bool | operator!= (const GraphItem &) const |
bool | operator< (const GraphItem &) const |
Ordering operator. | |
|
inline |
Default constructor.
Constructor for conversion from INVALID
. It initializes the item to be invalid.
|
inline |
Equality operator.
|
inline |
This operator defines an ordering of the items. It makes possible to use graph item types as key types in associative containers (e.g. std::map
).