| Crates.io | gexf |
| lib.rs | gexf |
| version | 0.1.1 |
| created_at | 2025-10-13 13:30:20.412112+00 |
| updated_at | 2025-10-13 13:33:54.270766+00 |
| description | Lightweight Rust library to export graphs in the GEXF format (Gephi) |
| homepage | |
| repository | https://github.com/roeeshoshani/gexf.git |
| max_upload_size | |
| id | 1880518 |
| size | 20,297 |
A tiny, dependency-light Rust library to export graphs to the GEXF format, compatible with Gephi and other tools.
defaultedgetype)<meta>): creator, description, last modified datestd::io::Write sink or straight to Stringcargo add gexf
use gexf::{GraphBuilder, EdgeType, Node};
let gexf = GraphBuilder::new(EdgeType::Directed)
.meta("my-app", "Sample")
.add_node(Node::new("n0").with_label("Alice"))?
.add_node(Node::new("n1").with_label("Bob"))?
.add_edge("n0", "n1")?
.try_build()?;
let xml = gexf.to_string()?; // or gexf.write(File::create("graph.gexf")?)
viz:*).<attvalues>. The full <attributes> schema is not supported.This crate was mostly developed by ChatGPT. I only cleaned it up and fixed a bunch of bugs.