Message Boards Message Boards

0
|
2399 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

[Solved] Multiple di-edges between same vertices with different colors?

Posted 3 years ago

I'd like these edges to be different colors. Is there a way to specify it?

POSTED BY: Richard Frost
2 Replies
Posted 3 years ago

Hi Richard,

In V 12.1 you can use EdgeTaggedGraph.

g = EdgeTaggedGraph[{Style["A" \[DirectedEdge] "B", Green], 
   Style["A" \[DirectedEdge] "B", Cyan], 
   Style["A" \[DirectedEdge] "B", Blue]},
  VertexStyle -> Black,
  GraphLayout -> "LayeredDigraphEmbedding",
  ImageSize -> 48]

enter image description here

POSTED BY: Rohit Namjoshi

Ok! Thank you for all your help to date.

POSTED BY: Richard Frost
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