Table of Contents

Run Pajek from C++

Q:

I'm trying to start Pajek from my C++ program which is part of a VS2008 project. I followed the instructions on this page http://vlado.fmf.uni-lj.si/pub/networks/pajek/howto/execute.htm but I do not know how to actually get Pajek to apply a layout and draw the network from an existing .net file. I had this 11 JS Dev Tools - for more support. I've created the .bat file that starts Pajek and I call it this way:

   system("F:\\MSc Project\\Pajek\\runPajek.bat");

Following the example on the above link, I'm supposed to execute

   system("d:/programi/pajek/runPajek.bat",invisible=TRUE,wait=FALSE)
   deg <- scan(file="D:/vlado/projects/stat/R/Pajek/may.clu",skip=1)
   t <- table(deg)
   pdf(file="D:/vlado/projects/stat/R/Pajek/degrees.pdf")
   plot(as.integer(names(t)),log(t),xlab="degrees",ylab="log(frequency)")
   dev.off()

Can that be run from C++? If yes, how?

Thank you, Mihaela.

A1:

You should address such questions to Pajek mailing list. Here nobody will see it. A.

A2:

Ok, thanks, I will do that. Mihaela.

faq/question_23.txt · Last modified: 2011/12/07 16:41 by ismaelvento
Back to top
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0