/// <summary> {@inheritDoc}</summary>
		public virtual void  generateGraph(Graph target, VertexFactory vertexFactory, System.Collections.IDictionary resultMap)
		{
			if (m_size < 1)
			{
				return ;
			}
			
			LinearGraphGenerator linearGenerator = new LinearGraphGenerator(m_size);
			//UPGRADE_TODO: Class 'java.util.HashMap' was converted to 'System.Collections.Hashtable' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilHashMap'"
			System.Collections.IDictionary privateMap = new System.Collections.Hashtable();
			linearGenerator.generateGraph(target, vertexFactory, privateMap);
			
			System.Object startVertex = privateMap[LinearGraphGenerator.START_VERTEX];
			System.Object endVertex = privateMap[LinearGraphGenerator.END_VERTEX];
			target.addEdge(endVertex, startVertex);
		}
Exemple #2
0
        /// <summary> {@inheritDoc}</summary>
        public virtual void  generateGraph(Graph target, VertexFactory vertexFactory, System.Collections.IDictionary resultMap)
        {
            if (m_size < 1)
            {
                return;
            }

            LinearGraphGenerator linearGenerator = new LinearGraphGenerator(m_size);

            //UPGRADE_TODO: Class 'java.util.HashMap' was converted to 'System.Collections.Hashtable' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilHashMap'"
            System.Collections.IDictionary privateMap = new System.Collections.Hashtable();
            linearGenerator.generateGraph(target, vertexFactory, privateMap);

            System.Object startVertex = privateMap[LinearGraphGenerator.START_VERTEX];
            System.Object endVertex   = privateMap[LinearGraphGenerator.END_VERTEX];
            target.addEdge(endVertex, startVertex);
        }