def get(self, item):
        """
        Returns the direct dependencies or dependents of a single item. Does not follow the entire dependency path.

        :param item: Node to return dependencies for.
        :return: Immediate dependencies or dependents.
        """
        e = self._deps.get(item)
        if e is None:
            return self.get_default()
        return e.parent