Class GridPolygonPartitioning
Inheritance
System.Object
GridPolygonPartitioning
Assembly: Edgar.dll
Syntax
public class GridPolygonPartitioning : Object, IPolygonPartitioning
Constructors
GridPolygonPartitioning()
Declaration
public GridPolygonPartitioning()
Methods
BipartiteIndependentSet(Int32, Int32, List<Tuple<Int32, Int32>>)
Compute a maximum independent set of a given bipartite graph.
Declaration
public List<int> BipartiteIndependentSet(int left, int right, List<Tuple<int, int>> edges)
Parameters
Type |
Name |
Description |
System.Int32 |
left |
|
System.Int32 |
right |
|
System.Collections.Generic.List<System.Tuple<System.Int32, System.Int32>> |
edges |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.Int32> |
|
BipartiteVertexCover(Int32, Int32, List<Tuple<Int32, Int32>>)
Compute a minimum vertex cover of a given bipartite graph.
Declaration
public Tuple<List<int>, List<int>> BipartiteVertexCover(int left, int right, List<Tuple<int, int>> edges)
Parameters
Type |
Name |
Description |
System.Int32 |
left |
|
System.Int32 |
right |
|
System.Collections.Generic.List<System.Tuple<System.Int32, System.Int32>> |
edges |
|
Returns
Type |
Description |
System.Tuple<System.Collections.Generic.List<System.Int32>, System.Collections.Generic.List<System.Int32>> |
|
GetPartitions(PolygonGrid2D)
Gets partitions of a given polygon.
Declaration
public List<RectangleGrid2D> GetPartitions(PolygonGrid2D polygon)
Parameters
Returns
Implements