GraphHelpers.h File
Convenience helpers for building simple graphs. More...
Included Headers
#include "graph/GraphSession.h"
#include "graph/nodes/PipelineNode.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
Namespaces Index
| namespace | simaai |
| namespace | neat |
| namespace | graph |
| namespace | helpers |
Description
Convenience helpers for building simple graphs.
File Listing
The file content with the documentation metadata removed is:
8#include "graph/GraphSession.h"
9#include "graph/nodes/PipelineNode.h"
16namespace simaai::neat::graph::helpers {
18inline NodeId add_pipeline(Graph& g, simaai::neat::NodeGroup group, std::string label = {}) {
21 return g.add(std::move(node));
24inline NodeId add_pipeline(Graph& g, std::shared_ptr<simaai::neat::Node> node,
28 return g.add(std::move(wrapper));
31inline GraphRun build(Graph g, const GraphRunOptions& opt = {}) {
32 GraphSession session(std::move(g));
40 g.connect(nodes[i - 1], nodes[i]);
45 chain(g, std::vector<NodeId>(nodes));
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.