#pragma once #include "viz/graph_sources.h" #include "viz/graph_types.h" namespace ge { enum InputKind { INPUT_NONE = 0, INPUT_OPERATIONS, // Futuro: INPUT_JSON, INPUT_JSONL, INPUT_GRAPHML, ... }; struct InputArgs { InputKind kind = INPUT_NONE; const char* uri = nullptr; // path al SQLite (operations) o al fichero }; // Dispatcher de sources. Devuelve true si la carga succeeded; en cualquier // caso `stats` se rellena (errors > 0 ante fallo). bool load_graph(const InputArgs& args, GraphData* out, graph::GraphLoadStats* stats); // Reload helper — usa la misma uri que la ultima `load_graph` exitosa. // Llama a `graph_free(out)` y vuelve a invocar `load_graph(args, out, stats)`. bool reload_graph(const InputArgs& args, GraphData* out, graph::GraphLoadStats* stats); } // namespace ge