exportGraphToJson

fun exportGraphToJson(graph: ComputeGraph, label: String = "graph"): SkJsonExport(source)

Basic mapper from a simple internal ComputeGraph to the JSON export model. This covers nodes, incoming edges, and minimal tensor metadata for ports.