示例#1
0
文件: Graph.cs 项目: bvdwalt/Graphs
        public int getPointDegree(GraphPoint point)
        {
            int v = 0;

            for (int c = 0; c < connections.Count(); c++)
            {
                if (connections[c].isPointConnected(point))
                {
                    v++;
                }
            }
            return(v);
        }
示例#2
0
文件: Graph.cs 项目: bvdwalt/Graphs
 public bool createNewConnection(GraphPoint id1, GraphPoint id2)
 {
     return(createNewConnection(id1.getId(), id2.getId()));
 }