MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / start_node

Method start_node

mlx/data/core/Graph.cpp:140–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 return visit_nodes(vnodes, node_visitor, edge_visitor, reverse);
139}
140void GraphBase::start_node(int64_t id) {
141 if (id < 0 || id >= nodes_.size()) {
142 throw std::runtime_error("Graph: invalid node id");
143 }
144 startNodeIds_.insert(id);
145}
146
147void GraphBase::final_node(int64_t id) {
148 if (id < 0 || id >= nodes_.size()) {

Callers 1

tokenizeFunction · 0.80

Calls 2

insertMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected