WouterSpekkink / gephi-plugins

Repository for Gephi Plugins maintained by the team. Each plugin has it's branch.
4 stars 2 forks source link

Crashes with isolates #8

Closed WouterSpekkink closed 3 years ago

WouterSpekkink commented 3 years ago

The plugin crashes when there are isolates. Should be easy to prevent.

WouterSpekkink commented 3 years ago

Fixed in latest commit. When the plugin detects a single-node component it skips this component and adds a warning to the report about this. The reason for this is that la4j's linear solver crashes when encountering single-node components. It also crashes when the node has a self-loop. I wonder through, if a single node with a self-loop is not theoretically a valid (although uninteresting) situation.

Alternative solution we could consider: Upon encountering single node without self-loop, set trophic level to 0.0 and trophic incoherence of the corresponding component to 0. Upon encountering a single node with a self-loop, set trophic level to 0.0 and set trophic incoherence to 0.5. Or doesn't that make any sense at all, and should I leave it as I solved it in the latest commit?