示例#1
0
文件: dot.go 项目: sbinet/gonum-graph
func nodeID(n graph.Node) string {
	switch n := n.(type) {
	case Node:
		return n.DOTID()
	default:
		return fmt.Sprint(n.ID())
	}
}