MCPcopy Create free account
hub / github.com/JordanCoin/codemap / IsHub

Method IsHub

scanner/filegraph.go:346–348  ·  view source on GitHub ↗

IsHub returns true if a file has 3+ importers

(path string)

Source from the content-addressed store, hash-verified

344
345// IsHub returns true if a file has 3+ importers
346func (fg *FileGraph) IsHub(path string) bool {
347 return len(fg.Importers[path]) >= 3
348}
349
350// HubFiles returns all files that are imported by 3+ other files
351func (fg *FileGraph) HubFiles() []string {

Calls

no outgoing calls