Class JSONGraphReader

Class Documentation

class JSONGraphReader

Public Static Functions

static void loadAdjacencyLike(const std::string &filepath, const std::shared_ptr<detail::CUDAEnvironmentDirectedGraphBuffers> &directed_graph, cudaStream_t stream)

Imports the provided graph from the json “adjacency like” format, supported by NetworkX/d3.js

  • filepath – The path to load the graph from

  • directed_graph – The graph buffers to import into

  • stream – CUDA stream (required by directed_graph for synchronising device buffers)

  • exception::InvalidFilePath – If the file cannot be opened for reading

  • exception::RapidJSONError – If JSON fails for any reason (e.g. structure does not match expectations)