label returns the label of the node.
(n graph.Node)
| 110 | |
| 111 | // label returns the label of the node. |
| 112 | func label(n graph.Node) string { |
| 113 | if n, ok := n.(*cfg.Node); ok { |
| 114 | return n.Label |
| 115 | } |
| 116 | panic(fmt.Sprintf("invalid node type; expected *cfg.Node, got %T", n)) |
| 117 | } |