Skip to content

Commit

Permalink
Make check_sorted default to false for dgl.graph()
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-dlasalle committed Feb 22, 2021
1 parent 9ab524b commit 26e7364
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/dgl/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def graph(data,
device=None,
row_sorted=False,
col_sorted=False,
check_sorted=True,
check_sorted=False,
**deprecated_kwargs):
"""Create a graph and return.
Expand Down Expand Up @@ -80,6 +80,11 @@ def graph(data,
col_sorted : bool, optional
Whether or not the columns of the COO are in ascending order within
each row. This only has an effect when ``row_sorted`` is True.
check_sorted : bool, optional
If this is ``True`` and ``row_sorted`` is ``False``, the edge list will
be scanned to see if it is in ascending order, and the resulting graph
will be marked accordingly.
Returns
-------
DGLGraph
Expand Down

0 comments on commit 26e7364

Please sign in to comment.