MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / graphType

Function graphType

deployments/desktop/static/desktop.js:3203–3211  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

3201 }
3202
3203 function graphType(node) {
3204 const source = node || {};
3205 const raw = String(source.node_type || source.type || "topic").toLowerCase();
3206 if (raw === "paper") return "paper";
3207 if (raw === "section") return "method";
3208 if (raw === "trajectory" || raw === "profile") return "frontier";
3209 if (raw === "method" || raw === "frontier" || raw === "topic") return raw;
3210 return "topic";
3211 }
3212
3213 function graphTypeLabel(node) {
3214 const type = graphType(node);

Callers 10

graphTypeLabelFunction · 0.85
graphAnchorFunction · 0.85
conceptEntriesFromGraphFunction · 0.85
topPaperNodesFunction · 0.85
relatedPapersForEntryFunction · 0.85
architectureBodyFunction · 0.85
buildWikiMapFunction · 0.85
layoutGraphFunction · 0.85
pickWikiFocusNodeIdFunction · 0.85
renderWikiRelationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected