Convert a SpatialLinesDataFrame object to a "igraph-class"