Available on crate feature
json
only.Expand description
Import and export graphs with json.
Generate graphs from json formatted in the json graph specification. Hyperedges aren’t implemented, but basic graphs like should work:
{
"graph": {
"nodes": {
"A": {
"label": "label for A is moved to data section in node"
},
"B": {
"metadata": {
"something": "here"
}
},
"C": {}
},
"edges": [
{
"source": "A",
"target": "B",
"metadata": 123451.45
},
{
"source": "B",
"target": "C",
"metadata": "just a string here!"
},
{
"source": "C",
"target": "A",
"metadata": { "key": "value" }
}
]
}
}
Enums
Functions
Get a ForceGraph
from json.
Create json from a ForceGraph
.