Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single point for node connections #647

Closed
samcro1967 opened this issue Feb 6, 2022 · 2 comments
Closed

Single point for node connections #647

samcro1967 opened this issue Feb 6, 2022 · 2 comments

Comments

@samcro1967
Copy link

samcro1967 commented Feb 6, 2022

Is there a way to get all connections to a node to connect at a single point? I have tried specifying tailport=s, but they all go to a different point on the bottom of the node. Is there another option to accomplish this?

Here is what I have right now:
image

Here is what I would like to have:
image

@clayms
Copy link

clayms commented Feb 6, 2022

Please post your code.

Have a look at the following issue comments:

#358 (comment)
#593 (comment)

@samcro1967
Copy link
Author

samcro1967 commented Feb 7, 2022

Adding "concentrate":"true" and "splines":"spline" to graph_attr accomplished what I was looking for. Thank you.

graph_attr = {
    "fontsize": "22.5",
    "fontcolor":"black",
    "fontname": "Sans serif",
    "layout":"dot",
    "concentrate":"true",
    "splines":"spline",
}
  blank1 = Node("", shape="plaintext", height="0.0", width="0.0")
  caddy_auth_portal - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1")- blank1
  blank1 - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1") - management_group
  blank2 = Node("", shape="plaintext", height="0.0", width="0.0")
  caddy_auth_portal - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1")- blank2
  blank2 - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1") - downloads_group
  blank3 = Node("", shape="plaintext", height="0.0", width="0.0")
  caddy_auth_portal - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1")- blank3
  blank3 - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1") - media_mgmt_group
  blank4 = Node("", shape="plaintext", height="0.0", width="0.0")
  caddy_auth_portal - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1")- blank4
  blank4 - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1") - media_utils_group
  blank5 = Node("", shape="plaintext", height="0.0", width="0.0")
  caddy_auth_portal - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1")- blank5
  blank5 - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1") - monitoring_group
  blank6 = Node("", shape="plaintext", height="0.0", width="0.0")
  caddy_auth_portal - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1")- blank6
  blank6 - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1") - media_access_group

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants