SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Check whether the traits object is undirected and has identical to/from types. More...
#include <ArcProperties.h>
Public Types | |
using | type = typename conjunction< std::is_same< typename ArcTraits::FromType, typename ArcTraits::ToType >, negation< typename ArcTraits::Directed > >::type |
Static Public Attributes | |
static constexpr bool | value = type::value |
Check whether the traits object is undirected and has identical to/from types.
In this case, many methods must behave differently since an arc between nodes a and b may be stored as either "a→b" or "b→a" (since the graph is undirected, the order is immaterial). We call this property "isAutoUndirected" since only nodes that point to other nodes of the same type (hence "auto") can truly be undirected as far as the API is concerned.