Revize a35cb648
Přidáno uživatelem Vojtěch Bartička před asi 2 roky(ů)
Backend/Core/GraphUtils/Intersections.cs | ||
---|---|---|
4 | 4 |
{ |
5 | 5 |
public class Intersections |
6 | 6 |
{ |
7 |
/// <summary> |
|
8 |
/// Finds intersections between 1D segments |
|
9 |
/// </summary> |
|
10 |
/// <param name="tags"></param> |
|
11 |
/// <returns></returns> |
|
7 | 12 |
public static Dictionary<AnnotationTagGeneric, List<AnnotationTagGeneric>> FindIntersections(List<AnnotationTagGeneric> tags) |
8 | 13 |
{ |
9 | 14 |
var intersections = new Dictionary<AnnotationTagGeneric, List<AnnotationTagGeneric>>(); |
... | ... | |
27 | 32 |
return intersections; |
28 | 33 |
} |
29 | 34 |
|
35 |
/// <summary> |
|
36 |
/// Graph coloring |
|
37 |
/// </summary> |
|
38 |
/// <param name="source"></param> |
|
39 |
/// <returns></returns> |
|
30 | 40 |
public static Dictionary<AnnotationTagGeneric, int> ColorGraph(Dictionary<AnnotationTagGeneric, List<AnnotationTagGeneric>> source) |
31 | 41 |
{ |
32 | 42 |
var res = ConvertToMatrix(source); |
Také k dispozici: Unified diff
Added comments to backend