pub struct Exporter;Implementations§
Source§impl Exporter
impl Exporter
Sourcepub fn to_json_compat(&self, nodes: &[Node], edges: &[Edge]) -> Result<String>
pub fn to_json_compat(&self, nodes: &[Node], edges: &[Edge]) -> Result<String>
NetworkX node_link_data format (default for compat mode)
pub fn to_json_compat_file( &self, nodes: &[Node], edges: &[Edge], path: &Path, ) -> Result<()>
pub fn load_json_compat(&self, path: &Path) -> Result<NetworkXGraph>
Sourcepub fn to_json(
&self,
nodes: &[Node],
edges: &[Edge],
hyperedges: Option<&[HyperEdge]>,
) -> Result<String>
pub fn to_json( &self, nodes: &[Node], edges: &[Edge], hyperedges: Option<&[HyperEdge]>, ) -> Result<String>
Legacy GraphData format (our original, not NetworkX-compatible)
pub fn to_json_file( &self, nodes: &[Node], edges: &[Edge], hyperedges: Option<&[HyperEdge]>, path: &Path, ) -> Result<()>
pub fn load_json(&self, path: &Path) -> Result<GraphData>
pub fn to_svg(&self, nodes: &[Node], edges: &[Edge]) -> Result<String>
pub fn to_svg_file( &self, nodes: &[Node], edges: &[Edge], path: &Path, ) -> Result<()>
pub fn to_cypher(&self, nodes: &[Node], edges: &[Edge]) -> Result<String>
pub fn to_cypher_file( &self, nodes: &[Node], edges: &[Edge], path: &Path, ) -> Result<()>
pub fn to_wiki( &self, nodes: &[Node], _edges: &[Edge], output_dir: &Path, ) -> Result<()>
pub fn to_html(&self, nodes: &[Node], _edges: &[Edge]) -> Result<String>
pub fn to_html_file( &self, nodes: &[Node], edges: &[Edge], path: &Path, ) -> Result<()>
pub fn to_graphml(&self, nodes: &[Node], edges: &[Edge]) -> Result<String>
pub fn to_obsidian_vault( &self, nodes: &[Node], _edges: &[Edge], output_dir: &Path, ) -> Result<()>
pub fn to_obsidian_vault_from_data( &self, data: &GraphData, output_dir: &Path, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for Exporter
impl RefUnwindSafe for Exporter
impl Send for Exporter
impl Sync for Exporter
impl Unpin for Exporter
impl UnsafeUnpin for Exporter
impl UnwindSafe for Exporter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more