to_dgl
Converts a SAS graph to a DGL graph.
sasviya.network.utils.conversions.to_dgl(g, node_attrs='ALL', edge_attrs='ALL', group_node_attrs=None, group_edge_attrs=None)
Parameters
- g : SAS graph object
-
Specifies the input graph to convert.
- node_attrs : str or iterable of str, optional
-
Specifies a node attribute or list of node attributes to copy to the output graph. The default is ‘ALL’.
- edge_attrs : str or iterable of str, optional
-
Specifies an edge attribute or list of edge attributes to copy to the output graph. The default is ‘ALL’.
- group_node_attrs : iterable of str or ‘ALL’ or None, optional
-
Specifies a list of node attributes (or ‘ALL’) to concatenate and add to ndata.feat. The default is None.
- group_edge_attrs : str or iterable of str or None, optional
-
Specifies a list of edge attributes (or ‘ALL’) to concatenate and add to edata.feat. The default is None.
Returns
- DGL graph object
-
Returns a DGL graph equivalent to the input graph.
Last updated: July 28, 2026