code: public static <V> Map<SNode, V> createSNodeMapFromIDs(Map<String, V> map,
      SDocumentGraph graph)
    {
      HashMap<SNode, V> result = new LinkedHashMap<>();
  
      if (map != null && graph != null)
      {
        for (Map.Entry<String, V> e : map.entrySet())
        {
          SNode n = graph.getNode(e.getKey());
          if (n != null)
          {
            result.put(n, e.getValue());
          }
        }
      }
  
      return result;
    }
docs: Takes a map of salt node IDs to a value and return a new map that uses the
  SNodes as keys instead of the IDs.
  
  @param <V>
  @param map
  @param graph
  @return