<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _add_spanning_relation(self, source, target):
 """add a spanning relation to this docgraph"""

        self.add_edge(source, target, layers={self.ns, self.ns+':unit'},
                      edge_type=EdgeTypes.spanning_relation)