[BioC] names of edges in graph classes
Nishant Gopalakrishnan
ngopalak at fhcrc.org
Thu Jan 6 05:50:26 CET 2011
Hi Paul,
I am not sure why the edges are named in two different ways.
The "| " character is reserved as an edge separator and node names
cannot contain "|". It looks like you are right that they should have
had a consistent naming schema.
Nishant
On 01/04/2011 06:13 PM, Paul Shannon wrote:
> 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
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
>
More information about the Bioconductor
mailing list