Message Boards Message Boards

Convenient way to set multiple properties of a graph

Posted 10 years ago
POSTED BY: Szabolcs Horvát
2 Replies

Thank you Vitaliy, I knew there had to be a simpler solution!

I would like to suggest adding an additional function signature to the documentation. Now it mentions

SetProperty[{obj, itemspec}, name -> value]

only. It would be helpful to also list

SetProperty[{obj, itemspec}, {name1 -> value1, name2 -> value2, ...}]

below it, to make this easier to find.

POSTED BY: Szabolcs Horvát

This produced an identical output for me on versions 9 and 10:

SetProperty[
 CompleteKaryTree[5],
 {EdgeStyle -> Directive[Thick, Orange],
  VertexStyle -> White,
  GraphLayout -> "SpringElectricalEmbedding"}]

enter image description here

Does this work for you? This documentation example points to that.

POSTED BY: Vitaliy Kaurov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract