code: public static NFCompressedGraph readFrom(InputStream is, ByteSegmentPool memoryPool) throws IOException {
          NFCompressedGraphDeserializer deserializer = new NFCompressedGraphDeserializer();
          return deserializer.deserialize(is, memoryPool);
      }
docs: When using a {@link ByteSegmentPool}, this method will borrow arrays used to construct the NFCompressedGraph from that pool.
  <p>
  Note that because the {@link ByteSegmentPool} is NOT thread-safe, this this call is also NOT thread-safe.
  It is up to implementations to ensure that only a single update thread
  is accessing this memory pool at any given time.