Struct petgraph_graphml::GraphMl
[−]
[src]
pub struct GraphMl<G> where
G: IntoEdgeReferences,
G: IntoNodeReferences, { /* fields omitted */ }
Methods
impl<G> GraphMl<G> where
G: GraphProp,
G: IntoNodeReferences,
G: IntoEdgeReferences,
G: NodeIndexable,
[src]
G: GraphProp,
G: IntoNodeReferences,
G: IntoEdgeReferences,
G: NodeIndexable,
pub fn new(graph: G) -> Self
[src]
pub fn pretty_print(self, state: bool) -> Self
[src]
pub fn export_edge_weights_display(self) -> Self where
G::EdgeWeight: ToString,
[src]
G::EdgeWeight: ToString,
pub fn export_edge_weights(
self,
edge_weight: Box<Fn(&'a G::EdgeWeight) -> Vec<(Cow<'static, str>, Cow<'a, str>)>>
) -> Self
[src]
self,
edge_weight: Box<Fn(&'a G::EdgeWeight) -> Vec<(Cow<'static, str>, Cow<'a, str>)>>
) -> Self
pub fn export_node_weights_display(self) -> Self where
G::NodeWeight: ToString,
[src]
G::NodeWeight: ToString,
pub fn export_node_weights(
self,
node_weight: Box<Fn(&'a G::NodeWeight) -> Vec<(Cow<'static, str>, Cow<'a, str>)>>
) -> Self
[src]
self,
node_weight: Box<Fn(&'a G::NodeWeight) -> Vec<(Cow<'static, str>, Cow<'a, str>)>>
) -> Self
pub fn to_string(&self) -> String
[src]
pub fn to_writer<W>(&self, writer: W) -> IoResult<()> where
W: Write,
[src]
W: Write,
Trait Implementations
impl<G> Debug for GraphMl<G> where
G: Debug,
G: IntoEdgeReferences,
G: IntoNodeReferences,
[src]
G: Debug,
G: IntoEdgeReferences,
G: IntoNodeReferences,