Validate a single G6 port
Examples
validate_port(g6_port("input-1", type = "input"))
#> $key
#> [1] "input-1"
#>
#> $type
#> [1] "input"
#>
#> $label
#> [1] "input-1"
#>
#> $arity
#> [1] 1
#>
#> $showGuides
#> [1] FALSE
#>
#> $r
#> [1] 4
#>
#> attr(,"class")
#> [1] "g6_port"