fromJSON method
Restores this instance from the given JSON object.
Implementation
Graph fromJSON(Map<String,dynamic> json ) {
digraph = json['digraph'];
for ( int i = 0, l = json['_nodes'].length; i < l; i ++ ) {
addNode( Node().fromJSON( json['_nodes'][ i ] ) );
}
for ( int i = 0, l = json['_edges'].length; i < l; i ++ ) {
addEdge( Edge().fromJSON( json['_edges'][ i ] ) );
}
return this;
}