예제 #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()));
 }