int sum = 0;
for (Edge edge : graph.getEdgesPointingToVertex(vertex)) {
sum += edge.getWeight();
}
if (sum > MAX_OWNERSHIP_SUM_WEIGHT) {
throw new OverOwnershipException(vertex, sum);
}
}
for (Edge edge : graph.getEdges()) {
if (edge.getWeight() > OWENERSHIP_LEVEL && edge.getDestination().equals(edge.getSource())) {