#7004: Refactor the graph layout code, and add interface with graphviz
---------------------------------+------------------------------------------
Reporter: nthiery | Owner: nthiery
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.3.3
Component: graph theory | Keywords: graph layout, graphviz, acyclic
Author: Nicolas M. ThiƩry | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------------+------------------------------------------
Comment(by rlm):
All graphs used to plot as square plots, whether you wanted them to or
not. This would stretch any plot into a square, so if the relative
distances were larger in one dimension than in the other, this would not
show in the plot.
The following adjustment seems to improve the situation a bit, but I'm
really not sure what the "right" fix is here.
{{{
--- a/sage/graphs/generic_graph.py Thu Feb 11 15:36:58 2010 +0100
+++ b/sage/graphs/generic_graph.py Thu Feb 11 07:39:46 2010 -0800
@@ -9058,6 +9058,8 @@
# We restore back the original height.
for x in self.vertices():
newpos[x][dim-1] = pos[x][dim-1]
+ for i in range(dim-1):
+ newpos[x][i] *= 10
pos = newpos
return pos
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7004#comment:15>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.