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