Available on crate feature
json
only.Expand description
Import and export graphs with the jsongraph specification.
Hyperedges aren’t implemented, but basic graphs like should work:
{
"graph": {
"nodes": {
"1": {},
"2": {},
"3": {},
"4": {},
"5": {},
"6": {},
"7": {},
"8": {}
},
"edges": [
{
"source": "1",
"target": "2"
},
{
"source": "2",
"target": "3"
},
{
"source": "3",
"target": "4"
},
{
"source": "4",
"target": "1"
},
{
"source": "5",
"target": "6"
},
{
"source": "6",
"target": "7"
},
{
"source": "7",
"target": "8"
},
{
"source": "8",
"target": "5"
},
{
"source": "1",
"target": "5"
},
{
"source": "2",
"target": "6"
},
{
"source": "3",
"target": "7"
},
{
"source": "4",
"target": "8"
}
]
}
}
Enums
Possible errors returned by the functions in the module.
Functions
Get a ForceGraph
from a json string.
Create a json value from a ForceGraph
.