Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8779699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:51:44+00:00 2026-06-13T19:51:44+00:00

I have created a graph using graphviz that I’m pretty happy with and I

  • 0

I have created a graph using graphviz that I’m pretty happy with and I need to add one more edge to it. I currently have this:

Current Graph

(source for this in dot below)

I need to add an edge from T to S (in green!) but when I do so all the rest of the graph is thrown in to disarray. I know that I’m meant to just let graphviz take care of the layout but this graph forms one of a sequence and I’d like them to at least mostly look alike. I’ve tried various things with graph clusters and using weights to make all the other edges very high weight and the new edge very low but nothing seems to help. How can I add an edge from T to S which doesn’t worry about the fact that that edge will have to be quite long.

The dot source for what I have is

digraph G {
  rankdir=LR
  subgraph clusterD3 {
  vSource [label="S*"]
    subgraph clusterD2 {
      color=white
      S
      T
      subgraph clusterD1 {
        color=white
        {rank=same; B A}
        {rank=same; D C}
        A->C 
        B->D  
        A->D 
        C->D 
        B->A 
        }   
        S->A 
        S->B 
        C->T 
        D->T 
     }
  vSink [label="T*"]
  vSource->A [color=red]
  vSource->B [color=red]
  vSource->C [color=red]
  vSource->D [color=red]
  vSource->T [color=red]
  A->vSink   [color=blue]
  B->vSink   [color=blue]
  C->vSink   [color=blue]
  D->vSink   [color=blue]
  S->vSink   [color=blue]
  }  
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:51:45+00:00Added an answer on June 13, 2026 at 7:51 pm

    Adding

    {rank=same;vSource;S}
    

    solves the issue:

    digraph G {
      rankdir=LR
      subgraph clusterD3 {
      vSource [label="S*"]
        subgraph clusterD2 {
          color=white
          S
          T
          {rank=same;vSource;S}
          subgraph clusterD1 {
            color=white
            {rank=same; B A}
            {rank=same; D C}
            A->C 
            B->D  
            A->D 
            C->D 
            B->A 
            }   
            S->A 
            S->B 
            C->T 
            D->T 
         }
      vSink [label="T*"]
      vSource->A [color=red]
      vSource->B [color=red]
      vSource->C [color=red]
      vSource->D [color=red]
      vSource->T [color=red]
      A->vSink   [color=blue]
      B->vSink   [color=blue]
      C->vSink   [color=blue]
      D->vSink   [color=blue]
      S->vSink   [color=blue]
      T -> S     [color=green]
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created web project in struts2.in that i have plotted a graph using
Using ruby-graphviz, I've created a graph that looks like this (border added to emphasize
I have created a graph using core plot. Graph is shown in on the
Actually, in my app, I have created a graph using achartEngine . In these
I have a cyclic graph I created using dosync and ref-set . When I
I have created an application that creates bar graph based on inputs read from
I have created a graph with one x-axis and two y-axis. The problem is
I have created a graph datastructure using linked lists. With this code: typedef struct
We have created an invite function at our site in JavaScript using the Graph
I have created a graph using ggplot2. Now I want to have the legend

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.