mirror of
https://github.com/bettercap/bettercap.git
synced 2024-11-08 06:30:13 -08:00
16 lines
298 B
Go
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)
|
|
}
|