Beispiel #1
0
        private DataGraph Graph_Setup()
        {
            DataGraph graph = new DataGraph();

            foreach (DataVertex station in stations)
            {
                graph.AddVertex(station);
            }
            foreach (var connection in connections)
            {
                graph.AddEdge(connection);
            }
            return(graph);
        }
        private DataGraph Graph_Setup()
        {
            DataGraph graph = new DataGraph();

            foreach (DataVertex station in stations)
            {

                graph.AddVertex(station);
            }
            foreach (var connection in connections)
            {
                graph.AddEdge(connection);
            }
            return graph;
        }
 protected virtual void OnCreateDataEdge(Connection connection)
 {
     dataGraph.AddEdge(connection.outPoint.node.dataNode, connection.inPoint.node.dataNode);
     OnNodeEditorDataChange();
 }