IsHub returns true if a file has 3+ importers
(path string)
| 344 | |
| 345 | // IsHub returns true if a file has 3+ importers |
| 346 | func (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 |
| 351 | func (fg *FileGraph) HubFiles() []string { |
no outgoing calls