new: pushed new graph experimental module

This commit is contained in:
Simone Margaritelli 2024-05-31 14:07:19 +02:00
parent ca2e257fbb
commit 826f13e47a
11 changed files with 1480 additions and 0 deletions

View file

@ -0,0 +1,15 @@
package graph
import (
"github.com/bettercap/bettercap/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)
}