is there a function for the math logic of "probability" like "C"??

for instance if i have a bunch of pionts, say "4", i want the connection of them without getting connections within the same 2 points. the answer should be (4X3) / (1X2). but with the built-in Line function, grasshopper connects point 1 among the 4 to the rest 3 and then go on connecting point to the rest 3 and so on till the end. therefor i will get 16 connections(althought there will be 4 invalid lines) how do i get all the connections between the 4 points with only 1 connection between the same 2 points??
  • Daniel Piker

    It sounds like maybe one of the components that I posted here might be useful to you.

    That is specific to drawing straight lines between points, but the same logic could be used for any other function.
    I described later in that thread the idea of having this as a 4th type of data matching for general components, yet to hear David's thoughts on the matter though.

  • Kai-Yu Yu

    thank you very much Daniel.
    it's very good to know there is such a plug-in
    now it's way easier to approach what i wanna make.
    i will keep on exploring Grasshopper.
    thank you again.