Exemple #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;
        }