Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange visualization behavior #32

Closed
vani0vani0 opened this issue Sep 27, 2022 · 1 comment · Fixed by #40
Closed

Strange visualization behavior #32

vani0vani0 opened this issue Sep 27, 2022 · 1 comment · Fixed by #40
Labels
bug Something isn't working

Comments

@vani0vani0
Copy link

Hi team,
First of all allow me thank you for the great app you've built. I find it very useful.

I am facing an issue with it, where I am trying to explore the Eigencentrality within a large group of people (100+).
The resulting dataset contains around 1500 rows with src, dest, count and all the other necessary fields for the visualization.
I actually used the same queries that are available in the app OOTB for the centrality measures.

My problem is that if a use a "| sort - src" I get one result in the visualization. When I use a "|sort src" (i.e. ascending order) then I get different result in the visualization. I.e. different nodes are marked as "influential" or "prestigious" depending on the sort order.

Is this something to be concerned about or is it expected? I am not sure, but I think the results should always be the same, when trying to visualize the eigencentrality of the same group, regardless of the sort order.

Any ideas?

BTW, same thing can be tested if you change the sort order of the graph query of the OOTB dashboard called "graph_analysis_centrality". You will get two different pictures depending on the sort order.

@pdrieger
Copy link
Collaborator

Hi @vani0vani0 thank you for your great feedback. Let me give some context here: the actual calculation of the eigenvector shows stable / consistent results after the | fit command. But the appearance of the graph, e.g. colors, sizes etc. that come out of the predefined dashboards can indeed vary given different ordering (src as dest and dest as src) and the colors for src and dest: in case there is a node with the same value, e.g. IP address, appearing in the list that feeds into the graph viz multiple times and probably sometimes as src and sometimes as dest: the graph viz "overrides" the last node with the last found coloring attribute. I think this would also explain, that when you flip the ordering it takes on 2 different appearances based on what was overridden last. A possible solution might be to dedup the edge list and investigate if src is also appearing on some dest field and therefore can cause a collision. Another trick could be to postprocess with eventstats or similar to "clean up" the scr_color dest_color etc. accordingly to make it stable. I respect this can be a problem and might lead to inconsistent results, so we look into possibilities how to resolve that. Thank you again for bringing this to our attention!

@pdrieger pdrieger added the bug Something isn't working label Oct 28, 2022
edro15 added a commit that referenced this issue Nov 29, 2023
edro15 added a commit that referenced this issue Jan 16, 2024
* Fixed gitignore

* Security fixes for dependabot alerts

* Added id stanza for app.conf

* Updated CI/CD to fix warnings

* Last fix for CI/CD

* Updated manual-release ci/cd

* Updated .gitignore

* Updated README

* Updated dependencies

* Fix #32

* Webpack: modified mode and fixed warning

* Fixed viz when swapping 3D/2D

* Added feature to show nodes label

* Fixed bug when colors where not specified in spl

---------

Co-authored-by: Erica Pescio <edro15@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants