MathGroup Archive 2013

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

Search the Archive

Re: Applying data from a database link to a GraphPlot


On Friday, June 14, 2013 1:45:33 AM UTC-7, Tomas Garza wrote:
> The example you provide is not a very interesting one, since each of the
> 
> pairs is disconnected from the rest. To illustrate the point, though, I
> 
>  modified some of the pairs and added some others to obtain the list:
> 

....

> 
> 
> 
> GraphPlot[Table[Rule[labs[[j, 1]], labs[[j, 2]]], {j, 1, Length[labs]}],
> 
> 
> 
>  VertexLabeling -> True]
> 
> 
> 
> 
> 
> -Tomas
> 
> 
> 
> 
> 
> > From: ppksky at gmail.com
> 
> > Subject: Applying data from a database link to a GraphPlot
> 
> > To: mathgroup at smc.vnet.net
> 
> > Date: Thu, 13 Jun 2013 02:38:35 -0400
> 
> >
> 
> > This is my first project and I am trying to import data from a MySQL query into a GraphPlot expression.
> 
> >
> 
> > A return from MySQL (Sakila is the example here)
> 
> >
> 
> > SQLExecute[conn, "SELECT first_name, last_name FROM actor LIMIT 10"]
> 
> >
>
 
....

> 
> > Is there some way in place of converting the output of a data query to the input of a graphplot?  I see that an adjacency matrix is an optional input, but I'd also want to use labels generated from the database.
> 
> >

Thanks, I was able to use this code to advance my project and provide clues for further exploration.

Thanks to all who replied to my question.



  • Prev by Date: Re: Getting the plotted data from a graph
  • Next by Date: Re: Using Mathematica
  • Previous by thread: Re: Applying data from a database link to a GraphPlot
  • Next by thread: exporting tetrahedral meshes