English 中文(简体)
贴标签的对面分类
原标题:Logical grouping of edges with labels
  • 时间:2024-02-03 15:08:29
  •  标签:
  • graphviz
  • dot

在计算机网络中,分站常常使用多种链接(对面)进行连接,这些链接按逻辑分类(Link Aggregation [LAG]、多Chassis LAG [MCLAG]、Port-Channels、Lexchannels等)。 通常在网络图表中使用链路的圆环,并贴上这一圈子的标签。

Visual Examples: LAG (a single node to another single node):

“LAG”/

蓝色逻辑分类和标签

LAG的逻辑框架(Po100, Po200)只有 当地独特。 在A和B号标线上,对身份证的计算可能有所不同。

MCLAG (a group to another group/single node):

“MCLAG”/

蓝色逻辑分类和标签

在组别中,与另一节点的两种联系必然与本组内的“全球独一无二的

能否用图表/数字生成蓝色部分?

我读到图表中,找不到实现我所希望的特性。

问题回答

图维茨不适合这样做,但你可以重复这些例子。 这相当令人费解。

digraph A{
  splines=false
  ranksep=.8

  subgraph cluster1{
    { 
      rank=same
      VPC1 //[ordering=out]
      dummy1 [shape=point label="" style=invis]  // used to position loops
      VPC2
      edge[style=invis]
      VPC1 -> dummy1  -> VPC2
    }
  }
  {
    node[color=blue height=.3 width=1.3 label="" fontcolor=blue fixedsize=true]
    // fiddle w/ fonts to get constant-width spaces when positioning label
    loopG11 [label=<<FONT FACE="courier">                  </FONT><FONT FACE="Times-Roman">Po100</FONT>>]
    loopG12 [label=<<FONT FACE="courier">                  </FONT><FONT FACE="Times-Roman">Po200</FONT>>]
  }
  A
  VPC1->A [taillabel="
eth1/2 " headlabel="eth1/2  "]
  VPC2->A [taillabel="
eth1/2  " headlabel="  eth1/2"]

  {
    edge[style=invis]
    dummy1 -> loopG11 -> loopG12 -> A
  }

  /////////////////////////////////////////////////////////////////

  node [group=Y]  // vertically align
  A1 [label="A"]
  B1 [label="B"]
  {
    node[color=blue fontcolor=blue height=.3 width=.7 XXfixedsize=true XXfontsize=10 label=""]
    loopG21 [xlabel="Po100"]
    loopG22 [xlabel="Po200"]
  }

  {
    edge[style=invis]
    A1 -> loopG21 -> loopG22 -> B1
  }
  A1:sw->B1:nw [taillabel="
eth1/1 " headlabel="eth1/2" dir=none  ]
  A1:se->B1:ne [taillabel="
eth1/2 " headlabel="eth1/2" dir=none  ]
}

Giving:
enter image description here

这里是问题的其他两个解决办法(更多或更少)。





相关问题
graphviz: minor tweaks to make the graph look nicer

I have a test graph here that I would like to tweak to make it look nicer. Here is the graphviz (dot) source, test6.dot: digraph G { ranksep=0.3; size="6.0,6.0"; node [fontsize=11]; ...

GraphViz - How to connect subgraphs?

In the DOT language for GraphViz, I m trying to represent a dependency diagram. I need to be able to have nodes inside a container and to be able to make nodes and/or containers dependent on other ...

QuickGraph GraphvizRecord doesn t display in vertices

I m trying to build a Graphviz graph containing record vertices using QuickGraph. So far, I have this: var algo = new GraphvizAlgorithm<Entity, EntityEdge>(this); algo.CommonVertexFormat.Shape =...

Specified edge lengths on networkx/igraph (Python)

I wanted to visualize a network with the data I have and would like to graph them with specific edge lengths. I use Python, and I ve tried networkx and igraph to plot but all seem to assign fixed edge ...

Graphical interface for Graphiz for Mac OS?

I installed the Graphviz GUI from pizelmap.com, but it appears to only be a viewer for .dot Graphviz files. I am looking for a graphical editor, where I can create diagrams by pointing and clicking--...

How to add edge labels in Graphviz?

I am trying to draw a graph using Graphviz, but I need to add labels on the edges. There does not seem to be any way to that in Graphviz. Are there a way out?

Tips on Using Bison --graph=[file] on Linux

Recently (about a month ago) I was trying to introduce new constructs to my company s in-house extension language, and struggling with a couple of reduce-reduce errors. While I eventually solved this ...

How to change arrowhead type?

I want to simulate non-directional graphs with .dot. To that end, I want the arrowhead type to be "none". How do I set this? "f" -> "t" [label=2],[arrowhead=none] "m" -> "d" [label=0],[...

热门标签