예제 #1
0
            public int Get(VInds v)
            {
                int h = v.GetHashCode() & 0xff;

                for (int i = 0; i < verts[h].Count; i++)
                {
                    if (verts[h][i].Vertex.Equals(v))
                    {
                        return(verts[h][i].Index);
                    }
                }
                verts[h].Add(new Key(Count, v));
                Count++;
                return(Count - 1);
            }
예제 #2
0
 public Key(int i, VInds v)
 {
     Index  = i;
     Vertex = v;
 }
예제 #3
0
 public Tri(string v1, string v2, string v3)
 {
     V1 = new VInds(v1);
     V2 = new VInds(v2);
     V3 = new VInds(v3);
 }