0

From the box there will be an arrow pointing to another arrow's tail then position the diamond like that. I've been trying to use the pos attribute but it's not working. Is this possible in Graphviz?

I've been trying to adjust the shapes to another position but no luck in doing so. I've attached the image on the link.

digraph {

  SlowJobID [label="Slow Job ID" shape=rectangle color=black]
  FastJobID [label="Fast Job ID" shape=rectangle color=black]
  KnownIssue [label="Known Issue?" shape=diamond]
  Interpret [label="Interpret Timing Details by expanding Timing Tab in Google Admin" shape=rect]
  Review [label="Review existing OMGs for BigQuery" shape=rectangle]
  Long [label="Long creation time?" shape=diamond]

  node[ shape = square ];
  { rank = same; SlowJobID FastJobID}
  { rank = same; KnownIssue Review}

  SlowJobID -> FastJobID [arrowhead=none label= "                                   "];
  SlowJobID -> KnownIssue [arrowhead=none];
  KnownIssue -> Interpret [label="    No "];
  KnownIssue -> Review [label="Yes       "];
  Interpret -> Long  
  

  
}

Problem

6
  • Please show what you tried so far. Also show a mockup of what you would like to have. Commented Feb 27, 2024 at 9:56
  • I've uploaded the sample and what I did so far. Commented Feb 27, 2024 at 10:07
  • Please don't add code as an image but add it verbatim (either wit the use of the {} of the edit line, encapsulateting it in a pair of ` ``` ` or indenting all the code with 4 spaces). Commented Feb 27, 2024 at 10:42
  • 1
    I cannot relate the given image with the image I get when running your code / what you want to achieve. Maybe you should also have a look at graphviz.org/docs/attrs/splines Commented Feb 27, 2024 at 11:28
  • 1
    To get the appearance of an edge pointing to another edge, create a node [shape=point] and use it as head for one edge & tail for the next. Commented Feb 27, 2024 at 20:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.