Exemple #1
0
func IsLayer2Edge(e *graph.Edge) bool {
	if t, ok := e.Metadata()["RelationType"]; ok && t.(string) == "layer2" {
		return true
	}
	return false
}
Exemple #2
0
func IsOwnershipEdge(e *graph.Edge) bool {
	if t, ok := e.Metadata()["RelationType"]; ok && t.(string) == "ownership" {
		return true
	}
	return false
}