R: fixed a bug when creating graphs from adjacency matrices, convert
them to double, in case they are integers.