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

Add dynamic edge attribute (weight),using csv file #1653

Closed
ricoi opened this issue Jan 18, 2017 · 9 comments
Closed

Add dynamic edge attribute (weight),using csv file #1653

ricoi opened this issue Jan 18, 2017 · 9 comments

Comments

@ricoi
Copy link

ricoi commented Jan 18, 2017

Hello,

I'm having problems to add a dynamic edge attribute, using a cvs file.
When I put the dynamic weight the gephi doesn't recognize it (e.g. <[2010.0, 5]; [2011.0, 1]; [2012.0, 8]> ..etc...)
With timestamp row, it only recognizes when I use like this: <[2010.0, 2011.0, 2012.0]>
Some one could help me to put a dynamic weight using a csv file?

@eduramiba
Copy link
Member

Hi, before importing make sure that your project uses timestamp time representation in the configuration dialog in data laboratory.

@eduramiba eduramiba self-assigned this Jan 18, 2017
@ricoi
Copy link
Author

ricoi commented Jan 18, 2017

Yes, it uses timestamp

@eduramiba
Copy link
Member

I see, that's strange as the second notation is for intervals and the first one for timestamps. In the second step of the wizard what's the reported type of the weight column?

@ricoi
Copy link
Author

ricoi commented Jan 18, 2017

When I put the row title "Weight", it self fixed the type as Double, and the values change.
When I put another title, I select TimestampIntegerMap

@eduramiba
Copy link
Member

Oh, I think you might need to convert the weight column first to a dynamic type. So all the steps are:

  1. Create project
  2. Configure Time Representation = Timestamp
  3. In data laboratory, click on "Convert column to dynamic", select Weight, check the "Replace column" option and accept
  4. Then, import your spreadsheet

In the future this might be easier when issue #1282 is finished

@ricoi
Copy link
Author

ricoi commented Jan 18, 2017

Ok, thank you for support.
What value should I use when "Convert column to dynamic"?
I first try "0", then "infinity", in both cases I imported the spreadsheet with row (<[2010.0, 5]; [2011.0, 1]; [2012.0, 8]> ) named "Weight", the type was self attributed as "Timestampdoublemap". The values appear ok, but statiscs don't reconigzed the weight, so when I calculate e.g. Weight av degree, the values were zero.

@eduramiba
Copy link
Member

The value is only used when converting existing rows, so no effect on an empty graph.

The Average weighted degree does not support dynamic weights at the moment (it actually causes an exception). Maybe one of the statistics labeled as dynamic is useful.

@ricoi
Copy link
Author

ricoi commented Jan 18, 2017

Ok, Thank you!

@eduramiba
Copy link
Member

Closing as fixed with #1282 which now should directly support dynamic weights.

@eduramiba eduramiba added this to the 0.9.2 milestone May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants