Class JSONGraphWriter

Class Documentation

class JSONGraphWriter

Public Static Functions

static void saveAdjacencyLike(const std::string &filepath, const std::shared_ptr<const detail::CUDAEnvironmentDirectedGraphBuffers> &directed_graph, cudaStream_t stream, bool pretty_print = true)

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

  • filepath – The path to save the graph to

  • directed_graph – The graph buffers to export

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

  • pretty_print – Whether JSON should be human readable (vs minified)

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

  • exception::RapidJSONError – If conversion to JSON fails for any reason