We have some people (for example 70 persons) and some tables (for example 4 tables). the people visite each other on each table. (for example the capacity of tables are 20,20,20,10).
After the first session they stand up and again sit randomly. we have a specific number of sessions for example 3 sessions. I modeled this process by a graph. the nodes are persons and tables and the relationship is [SITS_ON]. for example:
(p:Person)-[SITS_ON{session:2}]->(t:Table)
means person p sits on table t in session 2.
Now I need to find the number of collisions during the process. I want to know how many times the people already visited, visit each other again. person A sat on table t1 in session 1. person B sat on table t1 in session 1. person A sat on table t3 in session 2. person B sat on table t3 in session 2. so a collision. I want to know the number of collision like this in a given graph