Crates.io | time_varying_graph |
lib.rs | time_varying_graph |
version | 0.1.3 |
source | src |
created_at | 2023-06-03 13:28:55.715562 |
updated_at | 2023-06-13 21:40:30.859003 |
description | A complex graph package for interacting with time-varying graphs. For more information you can check out https://arxiv.org/abs/1012.0009 |
homepage | |
repository | https://github.com/zuper1998/time_varying_graph |
max_upload_size | |
id | 881632 |
size | 22,738 |
The main purpose of this library is to provide a simple library for interacting with time varying graphs.
use time_varying_graph::tvg::{Tvg};
let data = r#"
{
"nodes": [
"Node1",
"Node2"
],
"edges": [
{
"from": "Node1",
"to": "Node2",
"start" : 0.0,
"end" : 1.0,
"data": null
}
]
}"#;
// Create a time-varying graph:
let mut time_varying_graph = Tvg::new();
// Add data from json (recommended)
time_varying_graph.add_edges_from_json(data.to_string());