.. index:: pair: namespace; NGraph .. _doxid-namespace_n_graph: namespace NGraph ================ .. toctree:: :hidden: class_NGraph_tGraph.rst Overview ~~~~~~~~ A mathematical graph object: a simple, directed, connected graph, where nodes are of arbitrary type (colores, cities, names, etc.) Operations for adding and removing edges and vertices, together with functions for finding neighbors, subgraphs, and other properties are included. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace NGraph { // typedefs typedef :ref:`tGraph` :target:`Graph`; typedef :ref:`tGraph` :target:`iGraph`; typedef :ref:`tGraph` :target:`sGraph`; // classes template class :ref:`tGraph`; // global functions template std::istream& :target:`operator >>` (std::istream& s, :ref:`tGraph`& G); template std::ostream& :target:`operator <<` ( std::ostream& s, const :ref:`tGraph`& G ); } // namespace NGraph .. _details-namespace_n_graph: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ A mathematical graph object: a simple, directed, connected graph, where nodes are of arbitrary type (colores, cities, names, etc.) Operations for adding and removing edges and vertices, together with functions for finding neighbors, subgraphs, and other properties are included. Example: .. code-block:: none enum color {blue, green, red, yellow, pink, black}; tGraph A; .. code-block:: none A.insert_edge(blue, red); A.insert_edge(yellow, blue); A.insert_edge(blue, black); .. code-block:: none tGraph B(A), S=A.subgraph(blue); .. code-block:: none