Re: tree graph with images as the vertices?
- To: mathgroup at smc.vnet.net
- Subject: [mg123592] Re: tree graph with images as the vertices?
- From: Heike Gramberg <heike.gramberg at gmail.com>
- Date: Mon, 12 Dec 2011 06:44:22 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201112110845.DAA29526@smc.vnet.net>
You could use the VertexShape option for this. For example you could do something like this (here, imglist is the list of images) vertices = Range[5]; edges = {1 -> 2, 1 -> 3, 2 -> 4, 2 -> 5}; shapes = Table[i -> imglist[[i]], {i, vertices}]; TreeGraph[vertices, edges, VertexShape -> shapes, VertexSize -> .4] Heike. On 11 Dec 2011, at 09:45, J Davis wrote: > I am looking for a way to use TreeGraph (or a similar command) to > generate a tree graph, but one where the vertices (not just the vertex > labels) are images that I have. I have looked through the > documentation and this forum but haven't found what I need. > > Thanks for any help. > > --JD >
- References:
- tree graph with images as the vertices?
- From: J Davis <texasautiger@gmail.com>
- tree graph with images as the vertices?