Skip to content
Permalink
Browse files

make the 2-line change to GenericGraph.plot as suggested by slabbe

  • Loading branch information...
ppurka committed Jan 30, 2013
1 parent 90d31f7 commit a085570087caed97ee8cc9a2123438f1d6f0e34b
Showing with 8 additions and 6 deletions.
  1. +8 −6 sage_devel/trac_13891-all_in_one.patch
@@ -1,7 +1,7 @@
# HG changeset patch
# User Nathann Cohen <nathann.cohen@gmail.com>
# Date 1356905040 -3600
# Node ID 3d4e52b7a98a7f48af1745b750476350e68bff3d
# Node ID 88ae6ebbfea5cde9c9dca1b7f106175c97142850
# Parent 7db181072bee133999531acef36c1f413e7c3347
Default parameters for Graph.plot() and Graph.show()
* * *
@@ -274,15 +274,17 @@ diff --git a/sage/graphs/generic_graph.py b/sage/graphs/generic_graph.py
sage: from sage.graphs.graph_plot import graphplot_options
sage: list(sorted(graphplot_options.iteritems()))
[...]
@@ -14483,7 +14486,6 @@
@@ -14483,41 +14486,44 @@

sage: G=Graph({'a':['a','b','b','b','e'],'b':['c','d','e'],'c':['c','d','d','d'],'d':['e']},sparse=True)
sage: G.show(pos={'a':[0,1],'b':[1,1],'c':[2,0],'d':[1,0],'e':[0,0]})
-
"""
from sage.graphs.graph_plot import GraphPlot
return GraphPlot(graph=self, options=options).plot()
@@ -14491,33 +14493,38 @@
- """
- from sage.graphs.graph_plot import GraphPlot
- return GraphPlot(graph=self, options=options).plot()
+ """
+ return self.graphplot(**options).plot()

def show(self, **kwds):
"""
Shows the (di)graph.

0 comments on commit a085570

Please sign in to comment.
You can’t perform that action at this time.