MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / node_id

Function node_id

masfactory/visualizer/serialize.py:85–90  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

83 root_exit = getattr(root, "_exit", None)
84
85 def node_id(node) -> str:
86 if node is root_entry:
87 return "entry"
88 if node is root_exit:
89 return "exit"
90 return getattr(node, "name", str(node))
91
92 def node_type(node) -> str:
93 nid = node_id(node)

Callers 2

node_typeFunction · 0.85
ensure_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected