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

FA2 adjustsizes to take node size into account? #344

Closed
1tylermitchell opened this issue Jul 16, 2014 · 2 comments
Closed

FA2 adjustsizes to take node size into account? #344

1tylermitchell opened this issue Jul 16, 2014 · 2 comments
Labels

Comments

@1tylermitchell
Copy link

I resize my nodes so they are large and overlap - but I cannot get FA2 to spread them apart enough to show all the nodes. Is the adjustSizes:true option supposed to do this? Can anyone else confirm that this works presently?

( @sheymann assume this is the setting you were referring to? )

@1tylermitchell
Copy link
Author

Here is a test case... I wasn't sure if edges made a difference so I threw some in...

s.graph.addNode({id:"1",x:1,y:1,color:'rgba(255,0,0,0.6)',size:1});
s.graph.addNode({id:"2",x:1.2,y:0,color:'rgba(0,255,0,0.6)',size:10});
s.graph.addNode({id:"3",x:3,y:2,color:'rgba(0,0,255,0.6)',size:20});
s.graph.addEdge({id:"e1",source:"1",target:"2",color:'black'});
s.graph.addEdge({id:"e2",source:"2",target:"3",color:'black'});
s.graph.addEdge({id:"e3",source:"3",target:"1",color:'black'});

Produces:
fa2-a

Config and launch FA2:

fa2config = {
 linLogMode: false,
 outboundAttractionDistribution: false,
 adjustSizes: false,
 edgeWeightInfluence: 0,
 scalingRatio:1,
 strongGravityMode: false,
 gravity: 1,
 slowDown: 1
};

s.startForceAtlas2(fa2config)

Note, that's with adjustSizes:false - Moves things a little but is stable quickly. As expected, equidistant separation between nodes:
fa2-b

Setting s.configForceAtlas2({adjustSizes:true}) doesn't make much difference - though it keeps dancing and never settles, so sometimes the nodes don't overlap, but not much. Not equidistance, which seems right but not quite enough:

fa2-c

Thoughts or corrections?

@stale
Copy link

stale bot commented Oct 9, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 9, 2021
@stale stale bot closed this as completed Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant