Re: Include unconnected nodes in graph plot -- how?
- To: mathgroup at smc.vnet.net
- Subject: [mg112419] Re: Include unconnected nodes in graph plot -- how?
- From: Szabolcs HorvÃt <szhorvat at gmail.com>
- Date: Wed, 15 Sep 2010 04:37:19 -0400 (EDT)
2010/9/14 Carl K. Woll <carlw at wolfram.com>: > On 9/14/2010 4:15 AM, Szabolcs Horv=C3=A1t wrote: >> >> On 2010.09.13. 15:26, Szabolcs Horv==E1t wrote: >> >>> >>> Hello, >>> >>> Is it possible to include unconnected nodes when plotting a graph >>> (either using GraphPlot or some Combinatorica function)? >>> >> >> To answer my own question, Combinatorica's ShowGraph does this. But I >> still wonder, is it possible with GraphPlot? >> >> > > You can do this with GraphPlot if you use an adjacency matrix, e.g., > > GraphPlot[{{1, 0, 0}, {0, 0, 1}, {0, 1, 0}}] > Thank you Carl, Yes, in fact GraphPlot has no way of knowing how many vertices are there if only the edges are specified ...