ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 26 Nov 2012 15:55:31 +0100how to calculate distance between origin and furthest point on graph?https://ask.sagemath.org/question/9567/how-to-calculate-distance-between-origin-and-furthest-point-on-graph/Hello!
I am new on this forum so forgive me if I don't respect all "rules" or if someone answered already this question.
![image description](http://oi45.tinypic.com/ve3i2e.jpg)
If you take a look at the image, I just want to know how to calculate the distance between origin and the furthest dot on the graph.
code:
var('t')
ff = (exp(cos(t)) - 2*cos(4*t) + sin(t/12)^5)
parametric_plot((ff*cos(t),ff*sin(t)), (t,0,2*pi) , fill=True, fillcolor='orange', figsize=[3,3])
mario_rujaMon, 26 Nov 2012 15:55:31 +0100https://ask.sagemath.org/question/9567/How to find the path of the maximal distance between two vertices on a complete digraph?https://ask.sagemath.org/question/9000/how-to-find-the-path-of-the-maximal-distance-between-two-vertices-on-a-complete-digraph/I was wondering how can I find the path of the maximal distance between two vertices on a complete digraph.
Suppose the digraph has 5 vertices:
`sage: g = graphs.CompleteGraph(5).to_directed()`
I have seen a [maximal flow](http://www.sagemath.org/doc/thematic_tutorials/linear_programming.html#flows) example which is nice but it is not the same type of problem. How can I use sage to find the longest path?
MaelstromYamatoFri, 25 May 2012 14:06:58 +0200https://ask.sagemath.org/question/9000/