|
SMIL 1.1.2
|
Non-oriented edge. More...
Non-oriented edge.
#include <DGraph.hpp>
Collaboration diagram for Edge< NodeT, WeightT >:Public Member Functions | |
| Edge () | |
| Default constructor. | |
| Edge (NodeT a, NodeT b, WeightT w=1) | |
| Constructor using two nodes and an optional weight (default 1). | |
| Edge (const Edge &rhs) | |
| Copy constructor. | |
| Edge & | operator= (const Edge &rhs) |
| Copy an edge. | |
| bool | isActive () const |
| Check if the edge is active. | |
| void | desactivate () |
| Deactivate the Edge. | |
Public Attributes | |
| NodeT | source |
| Source node. | |
| NodeT | target |
| Target node. | |
| WeightT | weight |
| Edge weight/value. | |
|
inline |
Check if the edge is active.
An Edge is considered active if both source and target node indexes are non zero.