Functions | |
| template<class T> | |
| set< T > | list_to_set (const list< T > l) |
| This function returns the set of members in a list. I.e, it converts an ordered list to a set. | |
| int | MAXIMAL_ANTI_CHAIN (const graph &G, set< node > &MA) |
| This function computes a maximal antichain chain of a DAG (order). | |
| int | MINIMAL_CHAIN (const graph &G, node_array< int > &chain) |
| This function computes a minimal chain decomposition of a DAG (an order). | |
| template<class T> | |
| list< T > | set_to_list (const set< T > l) |
| This function returns the an ordered from a set. | |
| template< class T > set< T > list_to_set | ( | const list< T > | l | ) |
This function returns the set of members in a list. I.e, it converts an ordered list to a set.
| [in] | l | The ordered list to convert. |
| template< class T > list< T > set_to_list | ( | const set< T > | l | ) |
This function returns the an ordered from a set.
| [in] | l | The set to convert. |
| int MAXIMAL_ANTI_CHAIN | ( | const graph & | G, | |
| set< node > & | MA | |||
| ) |
This function computes a maximal antichain chain of a DAG (order).
| [in] | G | The DAG. |
| [out] | MA | A Maximal antichain. |
the width of the DAG. It is equal to the size of a maximal antichain. | int MINIMAL_CHAIN | ( | const graph & | G, | |
| node_array< int > & | chain | |||
| ) |
This function computes a minimal chain decomposition of a DAG (an order).
| [in] | G | The DAG. |
| [out] | chain | contains the number of the chain to which belongs. |
the minimal number of chains of the DAG. Dilworth proved that
, that is, it is equal to the size of a maximal antichain.