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

Set Maximum Edges #60

Closed
greebie opened this Issue Sep 5, 2018 · 5 comments

Comments

Projects
None yet
3 participants
@greebie
Collaborator

greebie commented Sep 5, 2018

Describe the bug
Set edge maximum amount to prevent larger nodes. Edge number to be determined.

To Reproduce
Some large networks have so many edges that they break sigmaJS.

Expected behavior
Do not potato browsers

Additional context
It may be preferred to let the user control the max number of edges and nodes. This can be a feature added another time.

@greebie

This comment has been minimized.

Show comment
Hide comment
@greebie

greebie Sep 5, 2018

Collaborator

The problem graph (2402) has over 2 million edges. The math in my head is that each edge is worth about 300 bytes (based on a rough measure of the number of characters in a typical edge). Therefore limiting to 1,000,000 edges would keep the file below approximately 300k.

Collaborator

greebie commented Sep 5, 2018

The problem graph (2402) has over 2 million edges. The math in my head is that each edge is worth about 300 bytes (based on a rough measure of the number of characters in a typical edge). Therefore limiting to 1,000,000 edges would keep the file below approximately 300k.

@greebie

This comment has been minimized.

Show comment
Hide comment
@greebie

greebie Sep 5, 2018

Collaborator

@ruebot @ianmilligan1 I'm wondering if this is a good time to add --max_nodes & --max_edge flags or should we just go with hard code for now?

Collaborator

greebie commented Sep 5, 2018

@ruebot @ianmilligan1 I'm wondering if this is a good time to add --max_nodes & --max_edge flags or should we just go with hard code for now?

@ianmilligan1

This comment has been minimized.

Show comment
Hide comment
@ianmilligan1

ianmilligan1 Sep 5, 2018

Member

Do you have a sense of how many of the files would have more than a million edges?

Member

ianmilligan1 commented Sep 5, 2018

Do you have a sense of how many of the files would have more than a million edges?

@ruebot

This comment has been minimized.

Show comment
Hide comment
@ruebot

ruebot Sep 5, 2018

Member

Having flags would be great. Much better than hard coding it.

Member

ruebot commented Sep 5, 2018

Having flags would be great. Much better than hard coding it.

@greebie

This comment has been minimized.

Show comment
Hide comment
@greebie

greebie Sep 5, 2018

Collaborator

Thanks. I'll add the flags. So far the impact would be minimal re: auk. I can only find 1 (2402) that has more than 1,000,000 edges but fewer than 50k nodes.

Collaborator

greebie commented Sep 5, 2018

Thanks. I'll add the flags. So far the impact would be minimal re: auk. I can only find 1 (2402) that has more than 1,000,000 edges but fewer than 50k nodes.

@ruebot ruebot closed this in bbde012 Sep 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment