code: def neigh(G: Graph, n: Node) -> RDFGraph:
      
      return arcsOut(G, n) | arcsIn(G, n)
docs: neigh(G, n) is the neighbourhood of the node n in the graph G.
  
           neigh(G, n) = arcsOut(G, n) ∪ arcsIn(G, n)