SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Types | Static Public Attributes | List of all members
smtk::graph::ArcProperties< ArcTraits >::isAutoUndirected Class Reference

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
 

Detailed Description

template<typename ArcTraits>
class smtk::graph::ArcProperties< ArcTraits >::isAutoUndirected

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.


The documentation for this class was generated from the following file: