Skip to content

Commit bb3749d

Browse files
committed
more tests
1 parent 5ac2ba4 commit bb3749d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/sage/graphs/orientations.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ def orient(G, f, weighted=None, data_structure=None, sparse=None,
150150
<sage.graphs.base.sparse_graph.SparseGraphBackend object at ...>
151151
sage: G.orient(foo, immutable=False, sparse=False)._backend
152152
<sage.graphs.base.sparse_graph.SparseGraphBackend object at ...>
153+
sage: G.orient(foo, data_structure=None, immutable=None, sparse=True)._backend
154+
<sage.graphs.base.sparse_graph.SparseGraphBackend object at ...>
155+
sage: G.orient(foo, data_structure=None, immutable=None, sparse=False)._backend
156+
<sage.graphs.base.dense_graph.DenseGraphBackend object at ...>
157+
sage: G.orient(foo, data_structure=None, immutable=None, sparse=None)._backend
158+
<sage.graphs.base.sparse_graph.SparseGraphBackend object at ...>
159+
sage: H = Graph(data_structure='dense')
160+
sage: H.orient(foo, data_structure=None, immutable=None, sparse=None)._backend
161+
<sage.graphs.base.dense_graph.DenseGraphBackend object at ...>
153162
"""
154163
# Which data structure should be used ?
155164
if data_structure is not None:

0 commit comments

Comments
 (0)