bettercap/modules/graph/js_builtin.go
2024-08-09 18:19:21 +02:00

16 lines
298 B
Go

package graph
import (
"github.com/bettercap/bettercap/v2/log"
)
type graphPackage struct{}
func (g graphPackage) IsConnected(nodeType, nodeID string) bool {
if Loaded == nil {
log.Error("graph.IsConnected: graph not loaded")
return false
}
return Loaded.IsConnected(nodeType, nodeID)
}