Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoudert committed Oct 10, 2024
1 parent 5ac2ba4 commit bb3749d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sage/graphs/orientations.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,15 @@ def orient(G, f, weighted=None, data_structure=None, sparse=None,
<sage.graphs.base.sparse_graph.SparseGraphBackend object at ...>
sage: G.orient(foo, immutable=False, sparse=False)._backend
<sage.graphs.base.sparse_graph.SparseGraphBackend object at ...>
sage: G.orient(foo, data_structure=None, immutable=None, sparse=True)._backend
<sage.graphs.base.sparse_graph.SparseGraphBackend object at ...>
sage: G.orient(foo, data_structure=None, immutable=None, sparse=False)._backend
<sage.graphs.base.dense_graph.DenseGraphBackend object at ...>
sage: G.orient(foo, data_structure=None, immutable=None, sparse=None)._backend
<sage.graphs.base.sparse_graph.SparseGraphBackend object at ...>
sage: H = Graph(data_structure='dense')
sage: H.orient(foo, data_structure=None, immutable=None, sparse=None)._backend
<sage.graphs.base.dense_graph.DenseGraphBackend object at ...>
"""
# Which data structure should be used ?
if data_structure is not None:
Expand Down

0 comments on commit bb3749d

Please sign in to comment.