ratio-graph 0.23.3

Ratio's graph manipulation library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
mod mock;
use ratio_graph::serialize::CompactGraph;

/// Test whether we can serialize a CompactGraph.
#[test]
#[cfg(feature = "serde")]
fn compact_json() {
    let graph = mock::mock_graph();
    let compact: CompactGraph = graph.into();
    let _value = serde_json::to_string_pretty(&compact).expect("a serialized value");
}