graphfind_rs/graph/mod.rs
1//! Everywhere a graph is used as a function argument or return type within this crate, it is required to implement the [graph::Graph] trait and possibly some of its trait extensions, depending on the specific functionalities required by each API.
2//!
3//! This approach theoretically allows swapping out storage backends for graphs, and allows more implementation flexibility for the return type of graph operations.
4//!
5//! However, petgraphs Graph type is currently the only storage backend supported by the implementations in this crate itself.
6
7/// Serializing graphs to files.
8mod file_io;
9pub use file_io::GraphReadWriter;
10/// Printing graph visualizations in graphviz dot format.
11mod print;
12pub use print::VizDotGraph;
13
14/// Helper functions for acessing graph attributes.
15mod graph_helpers;
16pub use self::graph_helpers::*;
17
18/// Generic graph trait specification
19mod graph_trait;
20pub use graph_trait::Graph;