MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Finding middle of edge in a graph


>---- Yedidel Elhayany <yedidel at gmail.com> wrote:

>I have a graph which I need to find the middle of every edge and add a
>vertice in that point. What function returns me all the middle points
>of edged in a graph?

Others (Bob Hanlon) have answered the question you posed. So, I
will point out you don't need to know the actual coordinates of
the center to place a point at the center of a plot. Instead,
you can use scaled coordinates. That is:

Plot[f[x], {x, xmin, xmax}, Epilog->{Red, PointSize[.02],Point[Scaled at {.5,.=
5}]}]

will put a red point at the center of your plot regardless of
details of f, xmin and xmax.


  • Prev by Date: Re: Ploting integral curves
  • Next by Date: Re: Plot results not right
  • Previous by thread: Re: Finding middle of edge in a graph
  • Next by thread: ValueQ and package