The API allows `user_data` to be added to `set_nodes` and `set_edges` define the default graph with no user data.
The API allows
user_datato be added toset_nodesandset_edgesdefine the default graph with no user data.