2
g=get.adjacency(erdos.renyi.game(100,0.5))
clusters(g)

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘clusters’ for signature ‘"dgCMatrix", "missing"’

clusters(graph.adjacency(g,mode='undirected',weighted=T))

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘clusters’ for signature ‘"igraph", "missing"’

For some reason first it condsiders g as sparse matrix, then when I change it to proper graph objects, it just cannot find the funciton. Until few days ago it was working perfectly, and then on Friday after lunch it just stopped working and I started obtaining these error messages. I would be grateful to anyone that could have an idea about this issue. It seems the function is not in the package anymore, as when I search for it, it just does not appear to be there.

Bonono
  • 827
  • 1
  • 9
  • 18
Zhana
  • 105
  • 4
  • Ok, problem solved. So essentially I also install package flexclust after that which also contains the function 'clusters' which apparently overrides the igraph clusters function. Any solution to this? – Zhana Mar 30 '15 at 12:01
  • 1
    See this question regarding accessing functions masked by another package: http://stackoverflow.com/questions/9337716/how-do-i-use-functions-in-one-r-package-masked-by-another-package – Tamás Mar 30 '15 at 15:35

0 Answers0