constructing a triangle graph -- 2
$10-30 USD
Paid on delivery
Input: Interactively input a number of vertices “n”, a permutation of numbers 1,2,…,n and n
intervals (for each interval ask to input start and finish points).
Output: Draw an intersection model (two parallel lines; on one line the permutation of numbers
1,2,…,n and on the other intervals numbered from 1 to n. Ends of each interval i connect by
segments with the point i on the other line; you get n triangles squeezed between two parallel
lines) and the triangle graph obtained from the model (the intersection graph of those
triangles).
Project ID: #10234262