-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsentinel_graph_builder.c
More file actions
59 lines (45 loc) · 2.7 KB
/
sentinel_graph_builder.c
File metadata and controls
59 lines (45 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
sentinel_graph_builder.c
PURPOSE:
Hard-coded graph builder for learning.
In a full system, this would parse AVIS files.
*/
#include "sentinel_graph_builder.h"
SenStatus sentinel_graph_build(SenGraph* graph) {
if (!graph) return SEN_STATUS_ERROR_INVALID_ARGUMENT;
sentinel_graph_init(graph);
/* Nodes */
sentinel_graph_add_node(graph, "AVIS-DATALAKE", SEN_REPO_TYPE_CORE);
sentinel_graph_add_node(graph, "AVIS", SEN_REPO_TYPE_CORE);
sentinel_graph_add_node(graph, "AVIS-ALERT-FVS", SEN_REPO_TYPE_CORE);
sentinel_graph_add_node(graph, "AVIS-AI-INI-DIR-MK-SCAN", SEN_REPO_TYPE_TOOLING);
sentinel_graph_add_node(graph, "CYHY-CMT", SEN_REPO_TYPE_CORE);
sentinel_graph_add_node(graph, "Fire-Gem", SEN_REPO_TYPE_CORE);
sentinel_graph_add_node(graph, "Dark-Com", SEN_REPO_TYPE_CORE);
sentinel_graph_add_node(graph, "Sentinel", SEN_REPO_TYPE_CORE);
sentinel_graph_add_node(graph, "NEXUS", SEN_REPO_TYPE_CORE);
sentinel_graph_add_node(graph, "Robo-Knight-Gallery", SEN_REPO_TYPE_LANGUAGE);
sentinel_graph_add_node(graph, "Robo-Knight-Player", SEN_REPO_TYPE_LANGUAGE);
sentinel_graph_add_node(graph, "Robo-Knight-Demos", SEN_REPO_TYPE_LANGUAGE);
sentinel_graph_add_node(graph, "robo-knight-inventory", SEN_REPO_TYPE_LANGUAGE);
sentinel_graph_add_node(graph, "CVBGODLY-CONSOLE", SEN_REPO_TYPE_TOOLING);
sentinel_graph_add_node(graph, "CYBORG-PROJECT-EXPLORER", SEN_REPO_TYPE_TOOLING);
sentinel_graph_add_node(graph, "Cyborg", SEN_REPO_TYPE_LANGUAGE);
sentinel_graph_add_node(graph, "JMC-ANDROID-APP-DEMO", SEN_REPO_TYPE_EXAMPLE);
sentinel_graph_add_node(graph, "mercwar", SEN_REPO_TYPE_CORE);
/* Edges */
sentinel_graph_add_edge(graph, "AVIS", "AVIS-DATALAKE", "feeds");
sentinel_graph_add_edge(graph, "AVIS-ALERT-FVS", "AVIS", "extends");
sentinel_graph_add_edge(graph, "AVIS-AI-INI-DIR-MK-SCAN", "AVIS-DATALAKE", "scans");
sentinel_graph_add_edge(graph, "CYHY-CMT", "AVIS", "computes");
sentinel_graph_add_edge(graph, "Fire-Gem", "NEXUS", "powers");
sentinel_graph_add_edge(graph, "Dark-Com", "NEXUS", "communicates");
sentinel_graph_add_edge(graph, "Sentinel", "NEXUS", "controls");
sentinel_graph_add_edge(graph, "Robo-Knight-Player", "Robo-Knight-Gallery", "uses");
sentinel_graph_add_edge(graph, "Robo-Knight-Demos", "Robo-Knight-Player", "demonstrates");
sentinel_graph_add_edge(graph, "robo-knight-inventory", "Robo-Knight-Player", "supplies");
sentinel_graph_add_edge(graph, "Cyborg", "CYBORG-PROJECT-EXPLORER", "explores");
sentinel_graph_add_edge(graph, "CVBGODLY-CONSOLE", "Cyborg", "executes");
sentinel_graph_add_edge(graph, "mercwar", "Sentinel", "hosts");
return SEN_STATUS_OK;
}