Entering edit mode
Paul Shannon
★
1.1k
@paul-shannon-578
Last seen 10.2 years ago
I notice that edges appear to be named in two different ways:
> edgeNames (g) [1:2]
[1] "1~2" "1~3"
> names (edgeData (g)) [1:2]
[1] "1|2" "1|3"
Does this different choice for separator character -- tilde in one
case, vertical bar in the other -- convey some meaning it would
behoove me to understand? Or is it perhaps an accidental difference?
A drawback to the current approach is that edgeNames (e.g., "1~2")
cannot be used to index into edgeData:
> edgeData (g) [["1|2"]] # this works
$edgeType
[1] "cluster"
$category
[1] 1
> edgeData (g) [["1~2"]] # this doesn't
NULL
Thanks,
- Paul