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