Bpp/Graph Random_generation | C++ |
|  |
This module provides facilities to generate random graphs. This section allows you to access the C++ source files of the module. This module is part of Bpp/Graph . The files listed below are included in the interface part of the module. So any module dependent of this module is also dependent of the files listed here. The files listed below are needed by the implementation part of the module. But a module dependent of this module is not necessary dependent of the files listed here. The namespaces listed below are integrated in this module. That means any element declared in one of those namespaces can now be directly used by or from this module. The aliases listed below are only used internally by the interface. They are here just to lighten the writing of certain declarations. Never use them, they are local to the interface and can not be used outside of it. tdGraph = class prArcData,class prNodeData
tuGraph = prArcData,prNodeData
Here are listed the types defined in the module. To use one of them, you have to specify the namespace of the module. Here are listed the errors that are supported or generated by the module. To use one of them, you do not have to specify the namespace of the module. Here are listed the functions provided by the module. To use one of them, you have to specify the namespace of the module. template <tdGraph> inline void generateConnexGraph(clGraph<tuGraph> & agGraph,tyCardinal agNbNode,tyCardinal agNbArc,tyBoolean agNoCircuit) Generates randomly a connex graph with given numbers of arcs and nodes.
template <tdGraph> inline void generateNonConnexGraph(clGraph<tuGraph> & agGraph,tyCardinal agNbNode,tyCardinal agNbArc,tyBoolean agNoCircuit) Generates randomly a graph (connex or not) with given numbers of arcs and nodes.
template <tdGraph> inline void generateSerialParallelGraph(clGraph<tuGraph> & agGraph,tyCardinal agNbNode,tyCardinal agNbArc) Generates randomly a connex serial-parallel graph with given numbers of arcs and nodes.
template <tdGraph> inline void generateTree(clGraph<tuGraph> & agGraph,tyCardinal agNbNode) Generates randomly a tree with a given number of nodes.
template <tdGraph> void generateConnexGraphWithArcValue(clGraph<tuGraph> & agGraph,tyCardinal agNbNode,tyCardinal agNbArc,tyInteger agValueScale,tyBoolean agNoCircuit) Generates randomly a connex graph with given numbers of arcs and nodes. A value between 0 and a given number is randomly chosen for each arc.
| | Copyright (c) 1999-2016 - Bruno Bachelet - bruno@nawouak.net - http://www.nawouak.net | Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation. See this license for more details (http://www.gnu.org). |
|
| |