Construct a dag_t object from an array of (unsorted) vertex_t objects (result contains a topologically sorted index array)
Construct a dag_t object from a JSON object (result contains a topologically sorted index array)