-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Network clustering nodes which have a common property #1147
Comments
Hi @AlexandreLedru,
|
Hi @Thomaash , First, thanks for your answer, I'm actually developing a network map which has to represent stacks and its devices (switch, firewall, etc...) on stack click, I want it to be dynamic so when a new stack is added to the network I don't have to develop a joinCondition based on it's devices' stack_id, I'm currently working with Hasura/GraphQL to use real-time subscriptions to a database that contains all my network informations. |
This isn't possible at the moment, |
Ok, thanks ! :) |
I had similar scenario, maybe a bit simpler to execute: network structure taken from DB, switches, wireless access points, firewalls ... I had only 2 groups to look for so it might not help in your case but this is how it is working in my use case:
get list of things to iterate over (that your cluster must have) and do clustering based on: |
Hi! perharps could help, here is my solution to build many clusters on https://scenaristeur.github.io/ipgs/
then i get an array of all cids used in the network with filter(Boolean) is here to remove "undefined" when node has no cid (https://stackoverflow.com/questions/281264/remove-empty-elements-from-an-array-in-javascript) Then i can apply clustering for each cid found even if it is not in the cid_config
I hope it can help as much as vis js helps me in my projects |
Hello, I'm trying to create a cluster of nodes based on a node property.
The documentation mentions :
var options = { joinCondition:function(nodeOptions) { return nodeOptions.cid === 1; } }
In this case only nodes with cid == 1 will be in the same cluster, I was wondering if it was possible to cluster all nodes based on their cid value within a single joinCondition or do I have to create a function for each cid possible values ?
The text was updated successfully, but these errors were encountered: