| 1 | package graphscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/ |
| 2 | |
| 3 | import ( |
| 4 | "github.com/bettercap/bettercap/logscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/log`/" |
| 5 | ) |
| 6 | |
| 7 | type graphPackagescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/graphPackage# struct{} |
| 8 | |
| 9 | func (g graphPackagescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/graphPackage#) IsConnectedscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/graphPackage#IsConnected().(nodeType, nodeID string) bool { |
| 10 | if Loadedscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Loaded. == nil { |
| 11 | logscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/log`/.Errorscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/log`/Error().("graph.IsConnected: graph not loaded") |
| 12 | return false |
| 13 | } |
| 14 | return Loadedscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Loaded..IsConnectedscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Graph#IsConnected().(nodeType, nodeID) |
| 15 | } |