erlfas / CNM

0 stars 0 forks source link

error no output #1

Open sirent opened 8 years ago

sirent commented 8 years ago

since i'm using netbeans, when i run the main code it not giving any output.

erlfas commented 8 years ago

You have to make some modifications in order to make the code work on your computer. As you can see in Main.java, the code expects a certain input file to be read:

InputReader inputReader = new InputReader("C:\Users\Erlend\Desktop\karate.net"); Graph graph4 = inputReader.readPajekInput();

Here is the input file: http://networkdata.ics.uci.edu/data/karate/karate.paj.

sirent commented 8 years ago

why the community i get after runnning karate.pairs are 3 instead of 2? from C++ CNM i get only 2 community. thank you.

|- -SirenttearS- -|

On Tue, Oct 4, 2016 at 1:42 AM, Erlend Eindride Fasmer < notifications@github.com> wrote:

You have to make some modifications in order to make the code work on your computer. As you can see in Main.java, the code expects a certain input file to be read:

InputReader inputReader = new InputReader("C:\Users\Erlend\Desktop\ karate.net"); Graph graph4 = inputReader.readPajekInput();

Here is the input file: http://networkdata.ics.uci. edu/data/karate/karate.paj.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/erlfas/CNM/issues/1#issuecomment-251189908, or mute the thread https://github.com/notifications/unsubscribe-auth/AHKf_fscSv_HeXVqQyX00Epdgk6Y7r2pks5qwUyzgaJpZM4KM4Ma .

erlfas commented 8 years ago

That is a good question. There is some subtle difference between the two implementations. I guess the differing point is not clear from the paper by Clauset et al. That is as much as I can say right now.

Thanks for showing interest.

erlfas commented 8 years ago

I just remembered another thing. The order in which the nodes of the graph are processed determines the final result. Therefore probably the two implementations process the nodes in a different order.

sirent commented 8 years ago

oh i forgot to tell you that there is 3 node not in the right community since CNM is implementing from Newman modularity but faster than newman modularity. There are 2, 18, 22. The dendrogram here will tell you where the cut to get 3 community.[image: Inline image 1]

|- -SirenttearS- -|

On Tue, Oct 4, 2016 at 2:33 AM, Erlend Eindride Fasmer < notifications@github.com> wrote:

I just remembered another thing. The order in which the nodes of the graph are processed determines the final result. Therefore probably the two implementations process the nodes in a different order.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/erlfas/CNM/issues/1#issuecomment-251203312, or mute the thread https://github.com/notifications/unsubscribe-auth/AHKf_bV3-mHVEZaLdKEzOLZkN1LXtaqhks5qwViSgaJpZM4KM4Ma .