Ask OfflineW!
Because every question deserves an answer

Sponsored

Practica
MCQ Practice — Offline
Sharpen your skills with quick, offline-ready MCQ tests for instant revision and exam prep.
  • 500+ curated MCQs
  • Timed quizzes
  • Instant feedback
Start Practicing
No signup offlinew.com/practica

Related

  • Practice MCQ
  • Tutorials
Invert edge trajectory graphviz
18:26 23 Aug 2022

I am trying to graph a doubly linked circular list in .dot language but it does not display as I want. Both of the circular edges are under the nodes but I want 1 of them above

This is what I want:

expected result

But I get this instead:

given result

Here is my .dot code: https://dreampuf.github.io/GraphvizOnline/#digraph%20{%0A%20%20node[shape=record];%0A%20%20graph[pencolor=transparent];%0A%20%20rankdir=LR;%0A%20%20p1[label=%22{%3Cprev%3E|%3Cdata%3E%2012|%3Cnext%3E}%22];%0A%20%20p2[label=%22{%3Cprev%3E|%3Cdata%3E%2012|%3Cnext%3E}%22];%0A%20%20p3[label=%22{%3Cprev%3E|%3Cdata%3E%2012|%3Cnext%3E}%22];%0A%0A%0A%20%20%20%20p1:next%20-%3E%20p2:prev;%0A%20%20p2:next%20-%3E%20p3:prev;%0A%20%20p2:prev%20-%3E%20p1:next;%0A%20%20p3:prev%20-%3E%20p2:next;%0A%20%20%20%20edge[tailclip=false,dir=%22forward%22%20splines=%22compound%22%20constraint=%20%22false%22];%0A%20%0A%20%0Ap3:next%20-%3E%20p1:prev;%0A%0Ap1:prev%20-%3E%20p3:data;%0A%0A%20%20%20%20%0A}

graphviz

Your Answer

lock_outline

You need to log in to submit an answer.

Newsletter

Subscribe for updates

Advertisement

OffLine
Watch Videos — No Internet
Enjoy trending videos, watch offline anytime. Create, share & stay entertained — even when you’re offline.
  • Watch without internet connection
  • Create & share your videos
  • Fast, smooth & high-quality
Download Now
No signup needed offlinew.com
Terms Privacy Support
© 2025 OffLinew — All rights reserved

Privacy & Cookie Consent

We use cookies to ensure the best experience on our website. This includes analytics, personalization, and marketing purposes. Some cookies are essential for the website to function properly.

By clicking "Accept", you consent to our use of cookies. You can read more about how we use cookies and how you can change your preferences in our Privacy Policy.