Hi Florian,
Not sure I understand what's going on, but the graph package defines a
method fromGXL that has a connection object as part of its signature.
Here's what the code does there:
setIs("file", "connection")
setMethod("fromGXL", signature(con="connection"),
function(con) { ... }
So you could give that a try.
+ seth