genome_graph/
types.rs

1use crate::io::wtdbg2::{PlainWtdbg2EdgeData, PlainWtdbg2NodeData};
2
3/// A node-centric genome graph with `PlainBCalm2NodeData` as node data represented using the `petgraph` crate.
4pub type PetBCalm2NodeGraph<GenomeSequenceStoreHandle> =
5    crate::bigraph::implementation::node_bigraph_wrapper::NodeBigraphWrapper<
6        crate::bigraph::traitgraph::implementation::petgraph_impl::PetGraph<
7            crate::io::bcalm2::PlainBCalm2NodeData<GenomeSequenceStoreHandle>,
8            (),
9        >,
10    >;
11
12/// An edge-centric genome graph with `PlainBCalm2NodeData` as edge data represented using the `petgraph` crate.
13pub type PetBCalm2EdgeGraph<GenomeSequenceStoreHandle> =
14    crate::bigraph::implementation::node_bigraph_wrapper::NodeBigraphWrapper<
15        crate::bigraph::traitgraph::implementation::petgraph_impl::PetGraph<
16            (),
17            crate::io::bcalm2::PlainBCalm2NodeData<GenomeSequenceStoreHandle>,
18        >,
19    >;
20
21/// A genome graph for the wtdbg2 assembler represented using the `petgraph` crate.
22pub type PetWtdbg2Graph = crate::bigraph::implementation::node_bigraph_wrapper::NodeBigraphWrapper<
23    crate::bigraph::traitgraph::implementation::petgraph_impl::PetGraph<
24        PlainWtdbg2NodeData,
25        PlainWtdbg2EdgeData,
26    >,
27>;
28
29/// Simple type to represent bigraphs from the .dot format.
30pub type PetWtdbg2DotGraph =
31    crate::bigraph::implementation::node_bigraph_wrapper::NodeBigraphWrapper<
32        crate::bigraph::traitgraph::implementation::petgraph_impl::PetGraph<String, ()>,
33    >;