File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -331,16 +331,20 @@ private void MetadataGraph()
331331 // Make sure the nodes are placed in the appropriate group nodes (system nodes)
332332 foreach ( var node in graphNodeDictionary )
333333 {
334+ //Check whether current node isn't a system node
334335 if ( ! Graph . IsGroupNode ( node . Value ) )
335336 {
336- var systemName = node . Key . Split ( '_' ) [ 1 ] ;
337-
338- // Retrieve the parent for the given Node
339- INode parentNode ;
340- graphNodeDictionary . TryGetValue ( systemName , out parentNode ) ;
337+ //Check whether parent node is known
338+ if ( nodeDictionary . ContainsKey ( node . Key ) )
339+ {
340+ // Retrieve the parent for the given Node
341+ INode parentNode ;
342+ graphNodeDictionary . TryGetValue ( nodeDictionary [ node . Key ] , out parentNode ) ;
341343
342- // Graph.SetParent(node.Value, parentNode);
343- }
344+ // Set parent node
345+ Graph . SetParent ( node . Value , parentNode ) ;
346+ }
347+ }
344348 }
345349
346350 // Add the edges to the graph
You can’t perform that action at this time.
0 commit comments