equality to dict objects is bad practice and can miss edge cases -- better to do:

`if graph[x] and x not in self.nondept`