Graph.from_data

classmethod Graph.from_data(data)

Construct a datastructure from structured data.

Parameters

data (dict) – The data dictionary.

Returns

compas.datastructures.Datastructure – An object of the type of cls.

Notes

This constructor method is meant to be used in conjunction with the corresponding to_data method.