Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9682

Problems with Graph

From "Ernst H.K. Stelzer" <ernst.stelzer@physikalischebiologie.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Problems with Graph
Date 2012-04-18 07:55 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jmls1b$jec$1@smc.vnet.net> (permalink)

Show all headers | View raw


Hi,

my question is concerned with the Graph functionality, which was newly impl=
emented in Mathematica 8.  I already used GraphPlot and LayeredGraphPlot in the previous implementation and in principle appreciate the new capabilities.  How ever, I still wonder if the implementation is complete.  E.g. in the code below, I try to use VertexCoordinates for each vertex, which according to the documentation for Graph, should work. 

vertices1 = {Property[
    1, {VertexCoordinates -> {0, 3}, VertexSize -> 0.3}],
   Property[2, VertexCoordinates -> {1, 2}],
   Property[3, VertexCoordinates -> {3, 3}]};

Graph[vertices1, {1 \[UndirectedEdge] 2, 2 \[UndirectedEdge] 3},
 GraphLayout -> {"LayeredDrawing", "LayeredLeft"}]

Other Options within Property, e.g. VertexSize, work correctly.  VertexCoordinates has no effect whatsoever.  VertexCoordinates will work as an option for Graph, but not as a Property for a particular vertex.

My other concern relates to GraphLayout and in particular to the Suboption "PackingLayout", which seems to have no influence whatsoever.  E.g. if use "LayeredDrawing", the Suboptions "LayeredLeft" or "LayeredTop" create the same Graph.

What is your experience?

Sincerely

    Ernst

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Problems with Graph "Ernst H.K. Stelzer" <ernst.stelzer@physikalischebiologie.de> - 2012-04-18 07:55 +0000

csiph-web