-
Notifications
You must be signed in to change notification settings - Fork 0
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
improve grouping with self-loops #98
Comments
@zivnevo adding a self loop before running the algorithm seems wrong.
With the current algorithm, after grouping src we'll get
and after grouping dst on the result we'll get but if we add self loops before running the alg after grouping src we'll get:
and grouping dst will group nothing. I'm working on a different solution. |
My initial thought was to try both with and without self-loops and see which gives better results. Another option is to add the self loops just after some initial grouping was done. |
Actually I'm afraid that if we choose the direction of adding self loops, grouping and comparing than what is really required is to check all the possible combinations of subnets/vsis with and without self loops, which is not reasonable for a couple of reasons.
To gain the optimal grouping a self loop should be added only to b, which yields I have another solution in mind, if you wish we can discuss or I can put it here before I write the code. |
Proposed algorithm:
The distance between two GroupedConnLine is defined as following: The distance between lines claim: if the distance between line |
solved by #152 |
vsi3a-ky[10.240.30.5],vsi3b-ky[10.240.30.6],vsi3c-ky[10.240.30.4] => vsi3a-ky[10.240.30.5],vsi3b-ky[10.240.30.6],vsi3c-ky[10.240.30.4] : All Connections
vsi3a-ky[10.240.30.5],vsi3b-ky[10.240.30.6],vsi3c-ky[10.240.30.4] => vsi1-ky[10.240.10.4] : All Connections
The text was updated successfully, but these errors were encountered: