code: public Set<Weighted<DirectedEdge>> directedEdges(Map<NodeId, Node> nodes) {
          return Collections.emptySet();
      }
docs: Convert the fragment to a set of weighted edges for query planning
  
  @param nodes all nodes in the query
  @return a set of edges