pub struct HypergraphExporter { /* private fields */ }Expand description
Exports a Hypergraph to JSONL files for RustGraph import.
Implementations§
Source§impl HypergraphExporter
impl HypergraphExporter
Sourcepub fn new(config: HypergraphExportConfig) -> Self
pub fn new(config: HypergraphExportConfig) -> Self
Create a new exporter with the given configuration.
Sourcepub fn export(
&self,
hypergraph: &Hypergraph,
output_dir: &Path,
) -> Result<HypergraphMetadata>
pub fn export( &self, hypergraph: &Hypergraph, output_dir: &Path, ) -> Result<HypergraphMetadata>
Export the hypergraph to the given output directory.
Creates:
nodes.jsonl(one JSON object per line)edges.jsonl(one JSON object per line)hyperedges.jsonl(one JSON object per line)metadata.json(export metadata)
Auto Trait Implementations§
impl Freeze for HypergraphExporter
impl RefUnwindSafe for HypergraphExporter
impl Send for HypergraphExporter
impl Sync for HypergraphExporter
impl Unpin for HypergraphExporter
impl UnwindSafe for HypergraphExporter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more