Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.3K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

How to use option StraightLine in an EdgeTaggedGraph

Posted 1 year ago
POSTED BY: Richard Frost
2 Replies

Thank you Rohit.

I see that if arrowheads are not needed, then

EdgeShapeFunction -> {Line[#1] &}

is very good. It also appears that

GraphLayout -> {"EdgeLayout" -> "StraightLine"}

was quickly implemented with

EdgeShapeFunction -> {Line[{First[#1], Last[#1]}] &}

instead of the arduous task of accounting for separate edges.

So I also decided to punt on the whole matter, and instead use VertexCoordinates to adjust the placement of my 14 vertices among the 47 bezier edges.

POSTED BY: Richard Frost

Hi Richard,

This is a little better, but the arrowheads are missing. It must be possible based on the examples in the documentation for EdgeShapeFunction. I did not try.

esf[points_, edge_] := {Line[points]}

EdgeShapeFunction -> esf
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