Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.7K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

CreateDataStructure visualization object not rendering as image or graphics

Posted 3 years ago
POSTED BY: Ziggy Stardust
2 Replies

Thank you! I'm now able to change the size of the graphic so I can print it on an 8.5 x 11 piece of paper. I'm only having one more problem. I want to increase the size of the vertices and nothing appears to happen when I'm using the VertexSize option. It looks like the edges are changed but not the actual vertex.

Graph[binaryTree2["Visualization"], ImageSize -> {2550, 3300}, VertexSize -> Large, EdgeStyle -> {Thick}]

https://reference.wolfram.com/language/ref/VertexSize.html

As you can see the vertices are very small. It only looks like the adjustment in size is effecting the edges. This is the same graph as the picture in my original post.

enter image description here

POSTED BY: Ziggy Stardust
Posted 3 years ago

Hi Ziggy,

"Visualization" generates a Graph.

ds = CreateDataStructure["BinaryTree", 1 -> {2 -> {5, Null}, 8}];
viz = ds["Visualization"]

Head@viz
(* Graph *)

Any Graph / Graphics options can be applied to it

Graph[vis,
 ImageSize -> {200, 200},
 AspectRatio -> 1/2,
 VertexShapeFunction -> "Square",
 VertexSize -> .15,
 VertexStyle -> Red,
 VertexLabels -> "Name"]
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard