Add current object always to the graph

More bugs :)

The object itself is not added to the graph if it does not have any dependencies or nothing depends on it.