CFGLib.Parsers.Forests.ForestVisitors.GraphVisitors.GraphVisitor.Graph C# (CSharp) Method

Graph() private method

private Graph ( ) : Graph
return CFGLib.Parsers.Graphs.Graph
		internal Graph Graph() {
			if (_graph == null) {
				//int id = 0;
				_currentNode = new ForestNodeNode(Root, "" + _id++, 0);
				_ids[Root.InternalNode] = 0;
				_graph = new Graph(_currentNode);
				//GetGraphHelper(g, myNode, new HashSet<InteriorNode>(), new Dictionary<InteriorNode, int> { { _node, 0 } }, ref id);
				Root.Accept(this);
			}

			return _graph;
		}

Usage Example

Example #1
0
        public string ToDot()
        {
            // var graph = GetGraph();
            var gv    = new ForestVisitors.GraphVisitors.GraphVisitor(this);
            var graph = gv.Graph();

            return(graph.ToDot());
        }
All Usage Examples Of CFGLib.Parsers.Forests.ForestVisitors.GraphVisitors.GraphVisitor::Graph