fdg-sim 0.9.1

A flexible force-directed graph framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::fs;

use fdg_sim::{gml, json};

const SOCIAL_NETWORK: &'static str = include_str!("../../datasets/social_network.json");

fn main() {
    let graph = json::graph_from_json(SOCIAL_NETWORK).unwrap();

    fs::write("social_network.gml", gml::graph_to_gml(&graph).as_bytes()).unwrap();
}