 | ContainerHelperIntersectChangedK, V Method (DictionaryK, V, DictionaryK, V, IGraph, IEdge, AttributeType) |
Removes all key/value pairs from map a whose keys are not also contained in b.
If both dictionaries contain one key, the value from a takes precedence, in contrast to union.
Namespace:
de.unika.ipd.grGen.libGr
Assembly:
libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntaxpublic static bool IntersectChanged<K, V>(
Dictionary<K, V> a,
Dictionary<K, V> b,
IGraph graph,
IEdge owner,
AttributeType attrType
)
Parameters
- a
- Type: System.Collections.GenericDictionaryK, V
A dictionary to change. - b
- Type: System.Collections.GenericDictionaryK, V
Another dictionary of compatible type to a. - graph
- Type: de.unika.ipd.grGen.libGrIGraph
The graph containing the edge containing the attribute which gets changed. - owner
- Type: de.unika.ipd.grGen.libGrIEdge
The edge containing the attribute which gets changed. - attrType
- Type: de.unika.ipd.grGen.libGrAttributeType
The attribute type of the attribute which gets changed.
Type Parameters
- K
- V
Return Value
Type:
BooleanA truth value telling whether at least one element was changed in a
See Also