Skip to main content

GraphTypes.h File

Core types for hybrid graph orchestration (ports, edges, backends). More...

Included Headers​

#include "builder/OutputSpec.h" #include <cstddef> #include <cstdint> #include <string>

Namespaces Index​

namespacesimaai
namespaceneat
namespacegraph

Classes Index​

structPortDesc

Description of one input or output port on a graph node. More...

structEdge

Directed connection from one node's output port to another node's input port. More...

Description​

Core types for hybrid graph orchestration (ports, edges, backends).

File Listing​

The file content with the documentation metadata removed is:

1
6#pragma once
7
8#include "builder/OutputSpec.h"
9
10#include <cstddef>
11#include <cstdint>
12#include <string>
13
14namespace simaai::neat::graph {
15
17enum class Backend {
19 Stage,
20};
21
23using NodeId = std::size_t;
25using PortId = std::uint32_t;
26
28static constexpr NodeId kInvalidNode = static_cast<NodeId>(-1);
30static constexpr PortId kInvalidPort = static_cast<PortId>(-1);
31
33struct PortDesc {
34 std::string name;
35 OutputSpec spec;
36 bool optional = false;
37 int max_in_edges = 1;
38};
39
41struct Edge {
42 NodeId from = kInvalidNode;
43 PortId from_port = kInvalidPort;
44 NodeId to = kInvalidNode;
45 PortId to_port = kInvalidPort;
46};
47
48} // namespace simaai::neat::graph

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.