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

Zero weight arcs disappear on network load from file #151

Open
nienhth opened this issue Mar 7, 2024 · 5 comments
Open

Zero weight arcs disappear on network load from file #151

nienhth opened this issue Mar 7, 2024 · 5 comments

Comments

@nienhth
Copy link

nienhth commented Mar 7, 2024

Platform: Intel Mac mini Running Sonoma 14.4; SocNetV v3.1
Retrieving a network from a saved file, Zero weight lines do not show.
See attached screenshots of network on save (9:09 am) and on file retrieval 5:08pm). Timestamps in file name.
Zero weight arcs used to appear on network load as blue lines (default which I did not change). Other arc weights and colors were changed.
If issue is on saving a file, user feedback that save is complete would be nice.
If this is as designed, perhaps don't allow zero weight or add a note to the documentation.
thanks,
Tom

Screenshot 2024-03-07 at 5 08 10 PM
Screenshot 2024-03-07 at 9 09 56 AM

@nienhth
Copy link
Author

nienhth commented Mar 22, 2024

The issue applies to the process of saving a file, then re-opening the file (Network-> Recent File) with UTF-8 encoding. Lines disappear, not just zero weight lines. The amount of work lost with over 50 nodes makes me question the integrity of the app and searching for an alternative.

@oxy86
Copy link
Member

oxy86 commented Mar 31, 2024 via email

@nienhth
Copy link
Author

nienhth commented Mar 31, 2024

SocNetV v 3.1
Here's my sys info:

QT BUILD

Architecture:
x86_64-little_endian-lp64

SOCNETV BUILD

DirPath:
/Applications/SocNetV.app/Contents/MacOS

SSL version (at built-time):
Secure Transport, macOS 14.4

YOUR SYSTEM

OS:
macOS 14.4

Kernel:
darwin 23.4.0

Architecture:
x86_64

SSL support:
yes

SSL version (run-time):
Secure Transport, macOS 14.4

About web crawler: You are good to go. But please note, you may experience warnings/problems if you have a version of OpenSSL that does not match the one used while building SocNetV (Secure Transport, macOS 14.4)

OpenGL:
Vendor: Intel Inc.
Version: 2.1 INTEL-22.5.10
Renderer/Card: Intel(R) UHD Graphics 630

Library Paths:
/Applications/SocNetV.app/Contents/PlugIns
/Applications/SocNetV.app/Contents/MacOS

YOUR SCREEN

Geometry:
0 x 0

Size:
3840 x 2160

Available Size:
3788 x 2135

Device Pixel Ratio (the scale factor applied by the OS/Windowing system):
1

Logical DPI (i.e. 144 on Windows default 150% mode):
72

@oxy86
Copy link
Member

oxy86 commented Mar 31, 2024

Yes, you are right. The application does allow you to set the edge weight to zero, but it does not save these zero-weight edges to the graphml file (not to mention csv / adjacency where 0 means plainly "no-edge").
What is your use case of this? I mean, you obviously do no use those edges for computations (centrality etc)...
I am asking to see if there is a valid case so that I could implement this for you :)

oxy86 added a commit that referenced this issue Mar 31, 2024
…ct if any zero-weight edges will be saved (applies only for saving in GraphML format). This is by default FALSE. Note: To do this, we changed saveToGraphMLFormat() accordingly, using a new edgeExistsVirtual() function.
@oxy86
Copy link
Member

oxy86 commented Mar 31, 2024

To resolve this quickly, I have added a new Settings option (in a new Options tab!) where you can select if any zero-weight edges will be saved or not (applies only for saving in GraphML format). This option is by default FALSE.
To test this, please try the latest v3.2-dev build from here:
https://github.com/socnetv/app/releases/tag/continuous
Direct link:
https://github.com/socnetv/app/releases/download/continuous/SocNetV-3.2-db7a4df-macos.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants