# Rank between source and sink

**URL:** <https://forum.graphviz.org/t/rank-between-source-and-sink/1667>\
**Category:** Help\
**Created:** [June 15, 2023, 7:47pm UTC](https://forum.graphviz.org/t/rank-between-source-and-sink/1667 "2023-06-15T19:47:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [June 15, 2023, 8:52pm UTC](https://forum.graphviz.org/t/rank-between-source-and-sink/1667/2 "2023-06-15T20:52:27Z")

</div>

For the general case, no (see [Allow user to provide levels, or levels plus ordering (no ranking or crossing minimization), and let dot finish (#2023) · Issues · graphviz / graphviz · GitLab](https://gitlab.com/graphviz/graphviz/-/issues/2023)).  
But for a 3rd / middle rank, yes ([rank | Graphviz](https://graphviz.org/docs/attrs/rank/)):  
**rank=source** // exclusive  
**rank=same** // all the rest  
**rank=sink** // exclusive

---

_[View the full topic](https://forum.graphviz.org/t/rank-between-source-and-sink/1667)._
