internal Edge __connectTo(Vertex endVertex, FullID edgeFullID) { var edge = new Edge(this, endVertex, edgeFullID, graph_); graph_.__getEdgesDictionary().Add(edge); edges_.Add(edge); endVertex.edges_.Add(edge); return(edge); }
private void processBreakEdgeLineCommand(Command command) { var parameters = command.GetParameters(); var edgesDictionary = graph_.__getEdgesDictionary(); var edge = edgesDictionary.Find(FullID.FromString(parameters[0])); if (edge == null) { return; } var position = new Point3D(double.Parse(parameters[2]), double.Parse(parameters[3]), double.Parse(parameters[4])); var bend = edge.__breakEdgeLine(position, int.Parse(parameters[1])); graph_.__raiseBendAddedEvent(bend); }