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

Support shorthand notation for list of source/destination nodes in an edge. #5620

Open
guy4261 opened this issue Jul 3, 2024 · 0 comments
Open
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@guy4261
Copy link

guy4261 commented Jul 3, 2024

Proposal

Support shorthand notation for multiple sources/destinations - like dot/graphviz does.

Multiple Sources

digraph G {
  subgraph cluster_multi_source {
    {a1, b1} -> c1
  }
}
flowchart TB
    a1-->c1
    b1-->c1
Loading

Multiple Destinations

digraph G {
  subgraph cluster_multi_dst {
    a2 -> {b2, c2}
  }
}
flowchart TB
    a2-->b2
    a2-->c2
Loading

Multiple Sources AND Destinations (=cartesian product)

digraph G {
  subgraph cluster_multi_both {
    {a3, b3} -> {c3, d3}
  }
}
flowchart TB
    a3-->c3
    b3-->c3
    a3-->d3
    b3-->d3
Loading

Singletons are treated as ordinary nodes

digraph G {
  subgraph cluster_singletons {
    a4 -> {b4} -> c4
  }
}
flowchart TB
    a4-->b4-->c4
Loading

Example

Whatever you see fit - use [a, b, c] or {a, b, c} or anything else that works for you.

Screenshots

Added in the Proposal part (rendered mermaid equivalent to the dot listings).

@guy4261 guy4261 added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant