if (getModel() instanceof Vertex) {
Vertex vertex = (Vertex) getModel();
Graph parent = vertex.getParent();
// we get the *output* dependencies of vertex
Set<Edge> edges = parent.outgoingEdgesOf(vertex);
// return the dependencies
List dependencies = new ArrayList(edges);
return dependencies;
}