jrtom/jung

Getting NullPointerException when trying to get centrality vertex score when analyzing centralities

Closed this issue · 0 comments

I analyzing graphs using Jung for a college project. I've downloaded some graphs from this this website and converted them into .graphml files with Gephi. I've implemented almost everything and now I have to make reports on graphs. The problem is while I am analyzing centralities, I get NullPointerException when getting centrality vertex score. Probably will be problematic when analyzing macroscopic structures of graphs.

I don't know what's wrong with the project. It worked for the first file (adjnoun.graphml), but it didn't for others. GraphReader, Analyzers and Decomposers (that I have to manually implement) seem to be fine.

Here are the files from my GitHub repo:

adjnoun.graphml Works

celegansneural.graphml Doesn't work

football.graphml Doesn't work

polbooks.graphml Doesn't work

Decomposers

Centrality analyzers