In graph theory, vertices are usually not placed at any positions. A graph only represents the relationships between them. Most of the graph-theoretical definitions and theorems do not consider vertex positions at all.
In igraph it is possible to attach attributes to vertices, see ?set.graph.attribute, so you can attach your coordinates and use them in your own functions, but most igraph functions will ignore them. Gabor On Wed, Mar 20, 2013 at 12:20 PM, Zhongliang Zhao <zhaozhongli...@gmail.com>wrote: > ** > Not only for plotting. I want to create a topology in which node are > placed at specific position. > For example, I want to put node 1 at (1,1), node 2 at (2,2), ..., node 10 > at (10, 10). > > Cheers, > Zhongliang > > > On 03/20/2013 05:14 PM, Gábor Csárdi wrote: > > Hi, you mean plotting a graph? You can supply your coordinates in a > two-column matrix as the 'layout' argument of plot(). Please read the > manual pages > > ?plot.igraph > ?igraph.plotting > > Gabor > > > On Wed, Mar 20, 2013 at 12:07 PM, Zhongliang Zhao <z...@iam.unibe.ch>wrote: > >> Dear all, >> >> As a new user of igraph, I want to create a graph with specific >> coordinates, give coordinates as input parameters. >> Can anyone give me a hint how to do this? >> >> -- >> Best regards, >> Zhongliang Zhao >> >> >> _______________________________________________ >> igraph-help mailing list >> igraph-help@nongnu.org >> https://lists.nongnu.org/mailman/listinfo/igraph-help >> > > > _______________________________________________ > igraph-help mailing > listigraph-help@nongnu.orghttps://lists.nongnu.org/mailman/listinfo/igraph-help > > > > -- > Thanks and best regards, > Zhongliang Zhao > > > _______________________________________________ > igraph-help mailing list > igraph-help@nongnu.org > https://lists.nongnu.org/mailman/listinfo/igraph-help > >
_______________________________________________ igraph-help mailing list igraph-help@nongnu.org https://lists.nongnu.org/mailman/listinfo/igraph-help