Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Multiple base edges in clustered edge #3268

Merged

Conversation

wimrijnders
Copy link
Contributor

This fix adjusts the clustering edges so that they can refer to multiple edges instead of just one.

Fix for #3245.

Multiple base edges can be assigned to single clustering edge

Basically, the original single value field clusteringEdgeReplacingId has been replaced by the array-field clusteringEdgeReplacingIds, and all associated operations on it have been adjusted.

Deprecated method clustering.getBaseEdge()

This API method is now insufficient, since multiple base edges can be returned.

  • Added replacing method clustering.getBaseEdges()
  • Adjusted example changingClusteredEdgeNodes for the new method. This is the only place where getBaseEdge() was used
  • Adjusted documentation for new method and deprecation old method.

Method getbaseEdge() should now be considered deprecated, and in due time should be removed.

Fix for almende#3245.

This fix adjusts the clustering edges so that theyi can refer to multiple edges instead of just one.

This API method is now insufficient, since multiple base edges can be returned.

- Added replacing method `clustering.getBaseEdges()`
- Adjusted example `changingClusteredEdgeNodes` for the new method. This is the *only* place where `getBaseEdge()` was used
- Adjusted documentation for new method and deprecation old method.

Method `getbaseEdge()` should now be considered `deprecated`, and in due time should be removed.
@yotamberk
Copy link
Contributor

yotamberk commented Jul 20, 2017

@wimrijnders It seems to have conflicts that need to be resolved.
I would leave a note to deprecate the method in v5.0.0 in a TODO

@wimrijnders
Copy link
Contributor Author

I would leave a note to deprecate the method in v5.0.0 in a TODO

That's perfectly reasonable; I'll do that.
TBH I am not aware how major/minor releases are handled; I asked about this in the lobby. But I think this is a perfectly good idea.

@wimrijnders
Copy link
Contributor Author

Conflict fixed

@yotamberk yotamberk merged commit fc7b5f0 into almende:develop Jul 21, 2017
@wimrijnders wimrijnders deleted the multipleBaseEdgesInClusteredEdge branch July 22, 2017 05:38
@nanialves
Copy link

How to use this feature work for this? In other words, this interact like clustered nodes?

primozs pushed a commit to primozs/vis that referenced this pull request Jan 3, 2019
* First interim commit

* Fixes during testing

* Allow multiple edges to be hidden by a clustered edge.

Fix for almende#3245.

This fix adjusts the clustering edges so that theyi can refer to multiple edges instead of just one.

This API method is now insufficient, since multiple base edges can be returned.

- Added replacing method `clustering.getBaseEdges()`
- Adjusted example `changingClusteredEdgeNodes` for the new method. This is the *only* place where `getBaseEdge()` was used
- Adjusted documentation for new method and deprecation old method.

Method `getbaseEdge()` should now be considered `deprecated`, and in due time should be removed.

* Edits of method name in example

* Edits of method name in example

* adjusted deprecation method getBaseEdge() in docs

* Adjusted deprecation method for getBaseEdge() in docs
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants