Example #1
0
        private ScenarioData(IDictionary <string, ScenarioDataPerGraph> dataPerGraph)
        {
            _dataPerGraph = new Dictionary <string, ScenarioDataPerGraph>(dataPerGraph);
            var empty = new ScenarioDataPerGraph("empty", ConnectionFactory.CreateRemoteConnection("ggraph"),
                                                 new Dictionary <string, Vertex>(0), new Dictionary <string, Edge>());

            _dataPerGraph.Add("empty", empty);
        }
Example #2
0
        public ScenarioData(IMessageSerializer messageSerializer)
        {
            _connectionFactory = new RemoteConnectionFactory(messageSerializer);
            _dataPerGraph      = LoadDataPerGraph();
            var empty = new ScenarioDataPerGraph("empty", _connectionFactory.CreateRemoteConnection("ggraph"),
                                                 new Dictionary <string, Vertex>(0), new Dictionary <string, Edge>(), new Dictionary <string, VertexProperty>());

            _dataPerGraph.Add("empty", empty);
        }