time_varying_graph

Crates.iotime_varying_graph
lib.rstime_varying_graph
version0.1.3
sourcesrc
created_at2023-06-03 13:28:55.715562
updated_at2023-06-13 21:40:30.859003
descriptionA complex graph package for interacting with time-varying graphs. For more information you can check out https://arxiv.org/abs/1012.0009
homepage
repositoryhttps://github.com/zuper1998/time_varying_graph
max_upload_size
id881632
size22,738
(zuper1998)

documentation

README

time_varying_graph

Description

The main purpose of this library is to provide a simple library for interacting with time varying graphs.

Use

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());
Commit count: 16

cargo fmt