# HG changeset patch
# User Ryan on Corral Sage VM <iobass@email.com>
# Date 1300475712 21600
# Node ID 5e67566201a07edae2e2c5fc6f35bba335943de8
# Parent  73c28a719cc22f0c90d55f693dcc1791a49f2f51
trac 10958 -- need to include **kwds in call to Graph constructor when *args is empty

diff -r 73c28a719cc2 -r 5e67566201a0 sage/graphs/bipartite_graph.py
--- a/sage/graphs/bipartite_graph.py	Tue Feb 15 18:09:52 2011 +0100
+++ b/sage/graphs/bipartite_graph.py	Fri Mar 18 13:15:12 2011 -0600
@@ -208,6 +208,18 @@
         sage: G = graphs.OctahedralGraph()
         sage: N = networkx.make_clique_bipartite(G.networkx_graph())
         sage: B = BipartiteGraph(N)
+
+    TESTS:
+
+    Make sure we can create a ``BipartiteGraph`` with keywords but no
+    positional arguments (trac #10958).
+
+    ::
+
+        sage: B = BipartiteGraph(multiedges=True)
+        sage: B.allows_multiple_edges()
+        True
+       
     """
 
     def __init__(self, *args, **kwds):
@@ -222,7 +234,7 @@
             sage: B = BipartiteGraph(P, partition, check=False)
         """
         if len(args) == 0:
-            Graph.__init__(self)
+            Graph.__init__(self, **kwds)
             self.left = set()
             self.right = set()
             return
