#Loading libraries
library(GraphClusterAnalysis)
library(igraph)
library(RBGL)
library(graph)
library(snow)
library(snowfall)
library(parallel)
reading Input data
data<-read.csv('/home/poorna/Desktop/Cluster/test',header=FALSE,sep=",")
G = graph.data.frame(data,directed=FALSE)
make cluster type
cl <- makeCluster( '172.1.30.240', type="SOCK" )
clusterExport(cl, c('data'))
HCS cluster in parallel
results <- parLapply( cl, G, function(G) {
require(GraphClusterAnalysis)
require(igraph)
require(RBGL)
HCSClustering(G,kappa=3)
} )
I try to execute the above code in parallel but its throwing a below error`
Error in checkForRemoteErrors(val) : one node produced an error: unable to find an inherited method for function ‘nodes’ for signature ‘"numeric"’`
my Input data is in below format
2,5
159,5
2,100
2,858
3,100