public VirtualNodeType() : base(0) { subOrSameGrGenTypes = superOrSameGrGenTypes = subOrSameTypes = superOrSameTypes = new NodeType[] { this }; }
public void SetNodeTypeShape(NodeType nodeType, GrNodeShape shape) { nodeTypeShapes[nodeType] = shape; // overwrites existing mapping NodeTypeAppearanceChanged(nodeType); }
public IncidenceCountIndexDescription(string name, IncidenceDirection direction, NodeType startNodeType, EdgeType incidentEdgeType, NodeType adjacentNodeType) : base(name) { Direction = direction; StartNodeType = startNodeType; IncidentEdgeType = incidentEdgeType; AdjacentNodeType = adjacentNodeType; }
public void SetNodeTypeTextColor(NodeType nodeType, GrColor color) { nodeTypeTextColors[nodeType] = color; // overwrites existing mapping NodeTypeAppearanceChanged(nodeType); }
public bool IsExcludedNodeType(NodeType nodeType) { return(excludedNodeTypes.ContainsKey(nodeType)); }
public void ExcludeNodeType(NodeType nodeType) { excludedNodeTypes.Add(nodeType, true); }
/// <summary> /// Initializes a GroupNodeType. /// </summary> /// <param name="nodeType">The node type of this group node type.</param> /// <param name="priority">The priority to be used, when two group node types apply to one edge.</param> public GroupNodeType(NodeType nodeType, int priority) { NodeType = nodeType; Priority = priority; }
public static void FillSetWithNode <K>(Dictionary <K, SetValueType> targetSet, NodeType nodeType, IDictionary sourceSet) { foreach (DictionaryEntry entry in sourceSet) { INode node = entry.Key as INode; if (node == null) { continue; } if (node.InstanceOf(nodeType)) { targetSet.Add((K)entry.Key, (SetValueType)entry.Value); } } }