Пример #1
0
        void ReadSubgraph()
        {
            var listOfSubgraphs = xmlReader.GetAttribute(Tokens.listOfSubgraphs.ToString());
            var subgraphTempl   = new SubgraphTemplate();

            if (!string.IsNullOrEmpty(listOfSubgraphs))
            {
                subgraphTempl.SubgraphIdList.AddRange(listOfSubgraphs.Split(' '));
            }
            var listOfNodes = xmlReader.GetAttribute(Tokens.listOfNodes.ToString());

            if (!string.IsNullOrEmpty(listOfNodes))
            {
                subgraphTempl.NodeIdList.AddRange(listOfNodes.Split(' '));
            }

            xmlReader.Read();
            var subgraph = ReadSubgraphContent();

            subgraphTempl.Subgraph     = subgraph;
            subgraphTable[subgraph.Id] = subgraphTempl;
        }
        void ReadSubgraph() {
            var listOfSubgraphs = xmlReader.GetAttribute(Tokens.listOfSubgraphs.ToString());
            var subgraphTempl = new SubgraphTemplate();
            if (!string.IsNullOrEmpty(listOfSubgraphs)) {
                subgraphTempl.SubgraphIdList.AddRange(listOfSubgraphs.Split(' '));
            }
            var listOfNodes = xmlReader.GetAttribute(Tokens.listOfNodes.ToString());
            if (!string.IsNullOrEmpty(listOfNodes)) {
                subgraphTempl.NodeIdList.AddRange(listOfNodes.Split(' '));
            }

            xmlReader.Read();
            var subgraph = ReadSubgraphContent();
            subgraphTempl.Subgraph = subgraph;
            subgraphTable[subgraph.Id] = subgraphTempl;
        }